Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jauslin <ian.jauslin@rutgers.edu>2023-04-27 10:03:58 -0400
committerIan Jauslin <ian.jauslin@rutgers.edu>2023-04-27 10:03:58 -0400
commit0b6fe9bd6bef5a3cba2cb61920de3ad3dc6b57c2 (patch)
tree3d703ce865dea9180100cdc6fb461a14d02805c9
parent4436866d2f9b2a3b12e1ebf81df22e5e03cebd6c (diff)
Minor bug in nsteps for resumption
-rw-r--r--src/navier-stokes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/navier-stokes.c b/src/navier-stokes.c
index bab2710..afcb1ee 100644
--- a/src/navier-stokes.c
+++ b/src/navier-stokes.c
@@ -177,7 +177,7 @@ int eea(
remove_entry(params, "starting_time");
remove_entry(params, "init");
remove_entry(params, "nsteps");
- fprintf(savefile," -p \"%s;starting_time=%lu;nsteps=%lu;init=file:%s\"", params, t+1, (nsteps < t+1 ? 0 : nsteps-t-1), savefile_string);
+ fprintf(savefile," -p \"%s;starting_time=%lu;nsteps=%lu;init=file:%s\"", params, t+1, (nsteps+starting_time < t+1 ? 0 : nsteps+starting_time-t-1), savefile_string);
free(params);
}
fprintf(savefile," energy\n");