Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Prevent duplicate frames from being written in a restart
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 19, 2021
1 parent 52fd48e commit 792aa12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/swiftest_driver.f90
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ program swiftest_driver
iout = istep_out
idump = istep_dump
nloops = ceiling(tstop / dt, kind=I8B)
if (istep_out > 0) call nbody_system%write_frame(iu, param)
call nbody_system%dump(param)
if (istep_out > 0 .and. (.not.param%lrestart)) call nbody_system%write_frame(iu, param)
if (.not.param%lrestart) call nbody_system%dump(param)

!> Define the maximum number of threads
nthreads = 1 ! In the *serial* case
Expand Down

0 comments on commit 792aa12

Please sign in to comment.