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

Commit

Permalink
Fixed bug that was causing re-started runs to go longer than tstop
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Sep 9, 2021
1 parent aaf708c commit f428be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/swiftest_driver.f90
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ program swiftest_driver
iloop = 0
iout = istep_out
idump = istep_dump
nloops = ceiling(tstop / dt, kind=I8B)
nloops = ceiling((tstop - t0) / dt, kind=I8B)
ioutput_t0 = int(t0 / dt / istep_out, kind=I8B)
ioutput = ioutput_t0
! Prevent duplicate frames from being written if this is a restarted run
Expand Down

0 comments on commit f428be3

Please sign in to comment.