SimulatorBase: also show total time at each time step for performance comparison.

This commit is contained in:
Robert Kloefkorn 2016-02-08 16:11:01 +01:00
parent 82d508727f
commit 915177979c

View File

@ -200,12 +200,14 @@ namespace Opm
// Report timing. // Report timing.
const double st = solver_timer.secsSinceStart(); const double st = solver_timer.secsSinceStart();
// accumulate total time
stime += st;
if ( terminal_output_ ) 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() ) { if ( output_writer_.output() ) {
SimulatorReport step_report; SimulatorReport step_report;
step_report.pressure_time = st; step_report.pressure_time = st;