diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-10-26 01:00:07 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-10-26 01:09:33 +0200 |
commit | 52c57c5fcee43db61f718664a2b87e3fb3b54bc0 (patch) | |
tree | f04fcc57b355e040d98e7dd2870a916f016e3f92 /Carpet/Carpet/src/variables.cc | |
parent | b5a8c179373d2fd87d10af08702c3ea91f71e699 (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.cc | 2 |
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; |