mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #861 from blattms/fix-parallel-step_timings.txt-writing
Let only one rank write to step_timing.txt
This commit is contained in:
commit
79de15e21d
@ -306,7 +306,11 @@ namespace Opm
|
||||
step_report.total_newton_iterations = solver->nonlinearIterations();
|
||||
step_report.total_linear_iterations = solver->linearIterations();
|
||||
step_report.total_linearizations = solver->linearizations();
|
||||
step_report.reportParam(tstep_os);
|
||||
|
||||
if ( output_writer_.isIORank() )
|
||||
{
|
||||
step_report.reportParam(tstep_os);
|
||||
}
|
||||
}
|
||||
|
||||
// Increment timer, remember well state.
|
||||
|
@ -273,6 +273,12 @@ namespace Opm
|
||||
/** \brief return true if output is enabled */
|
||||
bool output () const { return output_; }
|
||||
|
||||
/** \brief Whether this process does write to disk */
|
||||
bool isIORank () const
|
||||
{
|
||||
parallelOutput_->isIORank();
|
||||
}
|
||||
|
||||
void restore(SimulatorTimerInterface& timer,
|
||||
BlackoilState& state,
|
||||
WellStateFullyImplicitBlackoil& wellState,
|
||||
|
Loading…
Reference in New Issue
Block a user