diff options
-rw-r--r-- | param.ccl | 3 | ||||
-rw-r--r-- | src/Output.c | 9 |
2 files changed, 10 insertions, 2 deletions
@@ -23,3 +23,6 @@ BOOLEAN next "On next iteration" STEERABLE=ALWAYS { } "no" +shares: IO + +USES INT checkpoint_every diff --git a/src/Output.c b/src/Output.c index eca295d..d1d9241 100644 --- a/src/Output.c +++ b/src/Output.c @@ -60,7 +60,9 @@ void TimerReport_Output(CCTK_ARGUMENTS) DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; - if (next || out_at == cctk_iteration || (out_every && cctk_iteration%out_every == 0)) + if (next || + out_at == cctk_iteration || + (out_every && cctk_iteration%out_every == 0)) { CCTK_VInfo(CCTK_THORNSTRING, @@ -89,12 +91,15 @@ void TimerReport_Checkpoint(CCTK_ARGUMENTS) DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; - if (before_checkpoint) + if (before_checkpoint && + (checkpoint_every && cctk_iteration%checkpoint_every == 0)) { + CCTK_VInfo(CCTK_THORNSTRING, "Timer Report before checkpointing at iteration %d, time %g", cctk_iteration, (double)cctk_time); CCTK_SchedulePrintTimes(NULL); + } } |