oil target may be limited by LRAT as well

This commit is contained in:
Tor Harald Sandve 2021-09-10 13:19:07 +02:00
parent 3b7cf9a565
commit 305de4016e

View File

@ -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;