recovering the well_controls if solveWellEq not convergent

since we are using the control index from both WellState and
well_controls.
This commit is contained in:
Kai Bao 2017-03-08 14:02:00 +01:00
parent ea3adb3c37
commit 77ec45cdd2

View File

@ -898,6 +898,11 @@ namespace Opm {
if (!converged) {
well_state = well_state0;
// also recover the old well controls
for (int w = 0; w < nw; ++w) {
WellControls* wc = wells().ctrls[w];
well_controls_set_current(wc, well_state.currentControls()[w]);
}
}
SimulatorReport report;