mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -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:
@@ -898,6 +898,11 @@ namespace Opm {
|
|||||||
|
|
||||||
if (!converged) {
|
if (!converged) {
|
||||||
well_state = well_state0;
|
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;
|
SimulatorReport report;
|
||||||
|
|||||||
Reference in New Issue
Block a user