aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Evolve.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/Evolve.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/Evolve.cc')
-rw-r--r--Carpet/Carpet/src/Evolve.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/Evolve.cc b/Carpet/Carpet/src/Evolve.cc
index aa51efe23..2d1541f72 100644
--- a/Carpet/Carpet/src/Evolve.cc
+++ b/Carpet/Carpet/src/Evolve.cc
@@ -99,6 +99,7 @@ namespace Carpet {
{
TimerNode *et = main_timer_tree.root->getChildTimer("Evolve");
et->print(cout, et->getTime(), 0, timer_tree_threshold_percentage, timer_tree_output_precision);
+ mode_timer_tree.root->print(cout, mode_timer_tree.root->getTime(), 0, timer_tree_threshold_percentage, timer_tree_output_precision);
}
timer.stop();
}