first write out the result of a time step, then increment the timer

if done the other way round we would make an assertation in TimeMap
false and also the values returned by SimulationTimer would be for the
next time step and not the current one...
This commit is contained in:
Andreas Lauser 2014-02-21 16:04:15 +01:00
parent 7b7726700e
commit dd080c4515

View File

@ -365,6 +365,7 @@ namespace Opm
// fractional_flows);
// wells_manager_.applyExplicitReinjectionControls(well_resflows_phase, well_resflows_phase);
// }
bool well_control_passed = !check_well_controls_;
int well_control_iteration = 0;
do {
@ -420,13 +421,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();