mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
7b7726700e
commit
dd080c4515
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user