mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
skip gaslift if not active
This commit is contained in:
parent
5cdde7230e
commit
0d0dfc0efe
@ -46,10 +46,14 @@ maybeDoGasLiftOptimize(const Simulator& simulator,
|
||||
DeferredLogger& deferred_logger)
|
||||
{
|
||||
OPM_TIMEFUNCTION();
|
||||
const auto& glo = simulator.vanguard().schedule().glo(simulator.episodeIndex())
|
||||
if(!glo.active()) {
|
||||
return false;
|
||||
}
|
||||
bool do_glift_optimization = false;
|
||||
int num_wells_changed = 0;
|
||||
const double simulation_time = simulator.time();
|
||||
const Scalar min_wait = simulator.vanguard().schedule().glo(simulator.episodeIndex()).min_wait();
|
||||
const Scalar min_wait = glo.min_wait();
|
||||
// We only optimize if a min_wait time has past.
|
||||
// If all_newton is true we still want to optimize several times pr timestep
|
||||
// i.e. we also optimize if check simulation_time == last_glift_opt_time_
|
||||
|
Loading…
Reference in New Issue
Block a user