Merge pull request #1270 from atgeirr/fix-output-timestep

Fix report step number associated with substeps.
This commit is contained in:
Alf Birger Rustad
2017-09-17 20:25:33 +02:00
committed by GitHub

View File

@@ -344,7 +344,8 @@ namespace Opm
eclIO_->overwriteInitialOIP(simProps);
}
// ... insert "extra" data (KR, VISC, ...)
eclIO_->writeTimeStep(timer.reportStepNum(),
const int reportStepForOutput = substep ? timer.reportStepNum() + 1 : timer.reportStepNum();
eclIO_->writeTimeStep(reportStepForOutput,
substep,
timer.simulationTimeElapsed(),
simProps,