mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
GasLiftSingleWellGeneric: avoid dead store
all branches below write a new value
This commit is contained in:
parent
9a8e58d7c3
commit
ddd0c5629d
@ -1534,10 +1534,8 @@ GasLiftSingleWellGeneric::OptimizeState::checkAlqOutsideLimits(double alq, [[may
|
||||
} else { // we are decreasing lift gas
|
||||
if (alq == 0) {
|
||||
ss << "ALQ is zero, cannot decrease further. Stopping iteration. ";
|
||||
result = true;
|
||||
} else if (alq < 0) {
|
||||
ss << "Negative ALQ: " << alq << ". Stopping iteration. ";
|
||||
result = true;
|
||||
}
|
||||
// NOTE: A negative min_alq_ means: allocate at least enough lift gas
|
||||
// to enable the well to flow, see WLIFTOPT item 5.
|
||||
|
Loading…
Reference in New Issue
Block a user