aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/variables.cc
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2012-10-26 01:00:07 +0200
committerIan Hinder <ian.hinder@aei.mpg.de>2012-10-26 01:09:33 +0200
commit52c57c5fcee43db61f718664a2b87e3fb3b54bc0 (patch)
treef04fcc57b355e040d98e7dd2870a916f016e3f92 /Carpet/Carpet/src/variables.cc
parentb5a8c179373d2fd87d10af08702c3ea91f71e699 (diff)
Add a timer tree for measuring time spent in each Carpet mode
* This can be used for determining which mode, or which refinement level or map, is taking up a lot of time in a simulation * Add parameters to control whether local mode and each map are timed * Time the transitions between modes
Diffstat (limited to 'Carpet/Carpet/src/variables.cc')
-rw-r--r--Carpet/Carpet/src/variables.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/variables.cc b/Carpet/Carpet/src/variables.cc
index e06881339..d7fef9e80 100644
--- a/Carpet/Carpet/src/variables.cc
+++ b/Carpet/Carpet/src/variables.cc
@@ -28,6 +28,8 @@ namespace Carpet {
vect<int,dim> maxspacereflevelfact;
TimerTree main_timer_tree;
+ TimerTree mode_timer_tree;
+
// Base multigrid level
int basemglevel;