mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
SimulatorBase: also show total time at each time step for performance comparison.
This commit is contained in:
parent
82d508727f
commit
915177979c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user