go back to incrementing the current simulation time first, then calling EclipseWriter::writeSolution()

for this not to trigger an assertation after the last time step, the
changes of OPM/opm-parser#141 are required.
This commit is contained in:
Andreas Lauser
2014-03-11 15:56:59 +01:00
parent 6b0f7c493c
commit 0ce6093b69

View File

@@ -424,13 +424,13 @@ namespace Opm
tstep_os.close();
}
// advance to next timestep before reporting at this location
++timer;
// write an output file for later inspection
if (output_) {
eclipseWriter_.writeTimeStep(timer, state, well_state);
}
// advance to next timestep before reporting at this location
++timer;
}
total_timer.stop();