From f428be3a17190e8232ac9fcea8a161d763a3a2e9 Mon Sep 17 00:00:00 2001 From: David A Minton Date: Thu, 9 Sep 2021 19:14:57 -0400 Subject: [PATCH] Fixed bug that was causing re-started runs to go longer than tstop --- src/main/swiftest_driver.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/swiftest_driver.f90 b/src/main/swiftest_driver.f90 index 876e0effd..b4260f115 100644 --- a/src/main/swiftest_driver.f90 +++ b/src/main/swiftest_driver.f90 @@ -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