diff options
-rw-r--r-- | interface.ccl | 3 | ||||
-rw-r--r-- | schedule.ccl | 14 | ||||
-rw-r--r-- | src/Output.c | 22 |
3 files changed, 29 insertions, 10 deletions
diff --git a/interface.ccl b/interface.ccl index 0210e53..47dd0db 100644 --- a/interface.ccl +++ b/interface.ccl @@ -8,6 +8,5 @@ private: int triggergroup type=SCALAR { -triggervar + triggervar } "For triggering output" - diff --git a/schedule.ccl b/schedule.ccl index 6a1be64..3a40bff 100644 --- a/schedule.ccl +++ b/schedule.ccl @@ -7,16 +7,14 @@ SCHEDULE TimerReport_Startup AT CCTK_STARTUP LANG: C } "Startup routine" -SCHEDULE TimerReport_Output AT CCTK_ANALYSIS +SCHEDULE TimerReport_Output AS zzz_TimerReport_Output AT CCTK_ANALYSIS { LANG: C - TRIGGERS: triggergroup + OPTIONS: global } "Print the timer report" -if (before_checkpoint) +SCHEDULE TimerReport_Checkpoint AS zzz_TimerReport_Checkpoint AT CCTK_CHECKPOINT { - SCHEDULE TimerReport_Output AT CCTK_CHECKPOINT - { - LANG: C - } "Print the timer report" -}
\ No newline at end of file + LANG: C + OPTIONS: global +} "Print the timer report" diff --git a/src/Output.c b/src/Output.c index 226ecb5..fcb39c7 100644 --- a/src/Output.c +++ b/src/Output.c @@ -141,3 +141,25 @@ void TimerReport_Output(CCTK_ARGUMENTS) return; } + + /*@@ + @routine TimerReport_Checkpoint + @date April 10 2004 + @author Erik Schnetter + @desc + Output the timer table if before_checkpoint is set + @enddesc + @calls +@@*/ +void TimerReport_Checkpoint(CCTK_ARGUMENTS) +{ + DECLARE_CCTK_ARGUMENTS + DECLARE_CCTK_PARAMETERS + + if (before_checkpoint) + { + CCTK_SchedulePrintTimes(NULL); + } + + return; +} |