mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
checking LIFTOPT active before trying to optimizing alq
in gliftBeginTimeStepWellTestIterateWellEquations. otherwise, if the increment is 0 (inactive), the function gliftBeginTimeStepWellTestIterateWellEquations might return undesired results or enter endless loop.
This commit is contained in:
@@ -730,8 +730,8 @@ namespace Opm
|
|||||||
const auto& schedule = ebos_simulator.vanguard().schedule();
|
const auto& schedule = ebos_simulator.vanguard().schedule();
|
||||||
auto report_step_idx = ebos_simulator.episodeIndex();
|
auto report_step_idx = ebos_simulator.episodeIndex();
|
||||||
const auto& glo = schedule.glo(report_step_idx);
|
const auto& glo = schedule.glo(report_step_idx);
|
||||||
if(glo.has_well(well_name)) {
|
if(glo.active() && glo.has_well(well_name)) {
|
||||||
auto increment = glo.gaslift_increment();
|
const auto increment = glo.gaslift_increment();
|
||||||
auto alq = well_state.getALQ(well_name);
|
auto alq = well_state.getALQ(well_name);
|
||||||
bool converged;
|
bool converged;
|
||||||
while (alq > 0) {
|
while (alq > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user