aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Timing.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-10-23 11:58:11 +0200
committerErik Schnetter <schnetter@cct.lsu.edu>2008-10-23 11:58:11 +0200
commit3be7da787d9d608d1fedf678ed06f457808f8dc8 (patch)
treed8c9e1fd4d2345c57fd66cf3b77f17ad43309d78 /Carpet/Carpet/src/Timing.cc
parent24ca1ea0db321a8943db6aed6298c81c897a5351 (diff)
Carpet: Measure M/h only for evolution, disregarding initialisation
Diffstat (limited to 'Carpet/Carpet/src/Timing.cc')
-rw-r--r--Carpet/Carpet/src/Timing.cc16
1 files changed, 13 insertions, 3 deletions
diff --git a/Carpet/Carpet/src/Timing.cc b/Carpet/Carpet/src/Timing.cc
index f767f1ea5..6c4102733 100644
--- a/Carpet/Carpet/src/Timing.cc
+++ b/Carpet/Carpet/src/Timing.cc
@@ -136,9 +136,6 @@ namespace Carpet {
{
DECLARE_CCTK_ARGUMENTS;
- initial_walltime = get_walltime();
- initial_phystime = cctkGH->cctk_time;
-
* physical_time_per_hour = 0.0;
* time_total = 0.0;
@@ -171,6 +168,19 @@ namespace Carpet {
+ // Begin timing (to be called after initialisation, just before the
+ // main evolution begins)
+ void
+ BeginTiming (cGH const * const cctkGH)
+ {
+ DECLARE_CCTK_ARGUMENTS;
+
+ initial_walltime = get_walltime();
+ initial_phystime = cctkGH->cctk_time;
+ }
+
+
+
// Take a step on the current refinement and multigrid level (to be
// called when EVOL is scheduled)
void