diff options
-rw-r--r-- | Carpet/Carpet/src/Evolve.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Carpet/Carpet/src/Evolve.cc b/Carpet/Carpet/src/Evolve.cc index 5207d34ac..3a2db3a9d 100644 --- a/Carpet/Carpet/src/Evolve.cc +++ b/Carpet/Carpet/src/Evolve.cc @@ -51,8 +51,16 @@ namespace Carpet { bool term; // Early shortcut - if (terminate_next || CCTK_TerminationReached(cgh)) { + if (iteration % maxreflevelfact != 0) { + // Terminate only after complete coarse grid steps + // TODO: once checkpointing works correctly, change this to + // "after complete time steps" + return false; + + } else if (terminate_next || CCTK_TerminationReached(cgh)) { + + // Terminate if someone or something said so term = true; } else { |