Merge pull request #3520 from totto82/fixAssertGaslift

oil target may be limited by LRAT as well
This commit is contained in:
Tor Harald Sandve 2021-09-13 11:32:43 +02:00 committed by GitHub
commit bc1bc90504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;