mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #3520 from totto82/fixAssertGaslift
oil target may be limited by LRAT as well
This commit is contained in:
commit
bc1bc90504
@ -663,7 +663,7 @@ reduceALQtoOilTarget_(double alq,
|
||||
double orig_alq = alq;
|
||||
// NOTE: This method should only be called if oil_is_limited, and hence
|
||||
// we know that it has oil rate control
|
||||
assert(this->controls_.hasControl(Well::ProducerCMode::ORAT));
|
||||
assert(this->controls_.hasControl(Well::ProducerCMode::ORAT) || this->controls_.hasControl(Well::ProducerCMode::LRAT));
|
||||
auto target = this->controls_.oil_rate;
|
||||
bool stop_iteration = false;
|
||||
double temp_alq = alq;
|
||||
|
Loading…
Reference in New Issue
Block a user