mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Equalize if statements governing step_timing.txt output
This commit is contained in:
parent
e0a7ced256
commit
e6c2ab47b3
@ -165,11 +165,9 @@ public:
|
||||
std::string tstep_filename = output_writer_.outputDirectory() + "/step_timing.txt";
|
||||
std::ofstream tstep_os;
|
||||
|
||||
if ( output_writer_.output() ) {
|
||||
if ( output_writer_.isIORank() )
|
||||
{
|
||||
tstep_os.open(tstep_filename.c_str());
|
||||
}
|
||||
if ( output_writer_.output() && output_writer_.isIORank() )
|
||||
{
|
||||
tstep_os.open(tstep_filename.c_str());
|
||||
}
|
||||
|
||||
const auto& schedule = eclState().getSchedule();
|
||||
@ -358,7 +356,8 @@ public:
|
||||
// update timing.
|
||||
report.solver_time += solver_timer.secsSinceStart();
|
||||
|
||||
if ( tstep_os.is_open() ) {
|
||||
if ( output_writer_.output() && output_writer_.isIORank() )
|
||||
{
|
||||
stepReport.reportParam(tstep_os);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user