aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Shutdown.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/Carpet/src/Shutdown.cc')
-rw-r--r--Carpet/Carpet/src/Shutdown.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/Carpet/Carpet/src/Shutdown.cc b/Carpet/Carpet/src/Shutdown.cc
index ca2123fba..0d5fbe244 100644
--- a/Carpet/Carpet/src/Shutdown.cc
+++ b/Carpet/Carpet/src/Shutdown.cc
@@ -83,8 +83,11 @@ namespace Carpet {
if (output_timer_tree_every > 0) {
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);
+ double total_avg, total_max;
+ et->getGlobalTime(total_avg, total_max);
+ et->print(cout, total_max, 0, timer_tree_threshold_percentage, timer_tree_output_precision);
+ mode_timer_tree.root->getGlobalTime(total_avg, total_max);
+ mode_timer_tree.root->print(cout, total_max, 0, timer_tree_threshold_percentage, timer_tree_output_precision);
}
if (output_xml_timer_tree) {