From 915177979c252ecec8d13b6a249df48eb965203b Mon Sep 17 00:00:00 2001 From: Robert Kloefkorn Date: Mon, 8 Feb 2016 16:11:01 +0100 Subject: [PATCH] SimulatorBase: also show total time at each time step for performance comparison. --- opm/autodiff/SimulatorBase_impl.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opm/autodiff/SimulatorBase_impl.hpp b/opm/autodiff/SimulatorBase_impl.hpp index 70098d8b8..adca8fd74 100644 --- a/opm/autodiff/SimulatorBase_impl.hpp +++ b/opm/autodiff/SimulatorBase_impl.hpp @@ -200,12 +200,14 @@ namespace Opm // Report timing. const double st = solver_timer.secsSinceStart(); + // accumulate total time + stime += st; + if ( terminal_output_ ) { - std::cout << "Fully implicit solver took: " << st << " seconds." << std::endl; + std::cout << "Fully implicit solver took: " << st << " seconds. Total solver time taken: " << stime << " seconds." << std::endl; } - stime += st; if ( output_writer_.output() ) { SimulatorReport step_report; step_report.pressure_time = st;