aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/variables.hh
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.hh
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.hh')
-rw-r--r--Carpet/Carpet/src/variables.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/variables.hh b/Carpet/Carpet/src/variables.hh
index c673b1699..60f934dd3 100644
--- a/Carpet/Carpet/src/variables.hh
+++ b/Carpet/Carpet/src/variables.hh
@@ -95,6 +95,8 @@ namespace Carpet {
extern vect<int,dim> spacereflevelfact;
extern TimerTree main_timer_tree;
+ extern TimerTree mode_timer_tree;
+
// Current multigrid factor
extern int mglevelfact;