Skip to content

Commit 7b1e034

Browse files
author
Alf Birger Rustad
authored
Merge pull request #1270 from atgeirr/fix-output-timestep
Fix report step number associated with substeps.
2 parents 5d9c835 + 60fe6b2 commit 7b1e034

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opm/autodiff/SimulatorFullyImplicitBlackoilOutput.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ namespace Opm
344344
eclIO_->overwriteInitialOIP(simProps);
345345
}
346346
// ... insert "extra" data (KR, VISC, ...)
347-
eclIO_->writeTimeStep(timer.reportStepNum(),
347+
const int reportStepForOutput = substep ? timer.reportStepNum() + 1 : timer.reportStepNum();
348+
eclIO_->writeTimeStep(reportStepForOutput,
348349
substep,
349350
timer.simulationTimeElapsed(),
350351
simProps,

0 commit comments

Comments
 (0)