Fix report step number associated with substeps.

It appears summary files by convention expect all substep data points to
be chunked together with the data point at the end of the report step.
This commit is contained in:
Atgeirr Flø Rasmussen 2017-09-15 12:04:30 +02:00
parent a162d883bf
commit 60fe6b2687

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,