mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 18:21:00 -06:00
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:
parent
ea3adb3c37
commit
77ec45cdd2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user