mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Only iterate wells activated for gaslift
This commit is contained in:
parent
4ba5e3efad
commit
e241fccbca
@ -604,20 +604,24 @@ namespace Opm
|
||||
const auto& schedule = ebos_simulator.vanguard().schedule();
|
||||
auto report_step_idx = ebos_simulator.episodeIndex();
|
||||
const auto& glo = schedule.glo(report_step_idx);
|
||||
assert(glo.has_well(well_name));
|
||||
auto increment = glo.gaslift_increment();
|
||||
auto alq = well_state.getALQ(well_name);
|
||||
bool converged;
|
||||
while (alq > 0) {
|
||||
well_state.setALQ(well_name, alq);
|
||||
if ((converged =
|
||||
iterateWellEquations(ebos_simulator, dt, well_state, group_state, deferred_logger)))
|
||||
{
|
||||
return converged;
|
||||
if(glo.has_well(well_name)) {
|
||||
auto increment = glo.gaslift_increment();
|
||||
auto alq = well_state.getALQ(well_name);
|
||||
bool converged;
|
||||
while (alq > 0) {
|
||||
well_state.setALQ(well_name, alq);
|
||||
if ((converged =
|
||||
iterateWellEquations(ebos_simulator, dt, well_state, group_state, deferred_logger)))
|
||||
{
|
||||
return converged;
|
||||
}
|
||||
alq -= increment;
|
||||
}
|
||||
alq -= increment;
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return iterateWellEquations(ebos_simulator, dt, well_state, group_state, deferred_logger);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
template<typename TypeTag>
|
||||
|
Loading…
Reference in New Issue
Block a user