mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-16 20:24:48 -06:00
Some minor changes as requested in review.
This commit is contained in:
parent
c2916bc7d9
commit
973a883043
@ -1163,8 +1163,8 @@ GasLiftSingleWellGeneric::runOptimizeLoop_(bool increase)
|
||||
// if (this->debug) debugShowBhpAlqTable_();
|
||||
if (this->debug)
|
||||
debugShowAlqIncreaseDecreaseCounts_();
|
||||
//if (this->debug)
|
||||
// debugShowTargets_();
|
||||
if (this->debug)
|
||||
debugShowTargets_();
|
||||
bool success = false; // did we succeed to increase alq?
|
||||
bool alq_is_limited = false;
|
||||
LimitedRates new_rates = *rates;
|
||||
|
@ -486,11 +486,9 @@ recalculateGradientAndUpdateData_(
|
||||
auto grad = calcIncOrDecGrad_(name, gs_well, gr_name_dont_limit, !increase);
|
||||
if (grad) {
|
||||
updateGrad_(name, *grad, !increase);
|
||||
//updateGrad_(name, *old_grad, !increase);
|
||||
// NOTE: This may invalidate any iterator into 'other_grads' since
|
||||
// updateGradVector_() will do a push_back() if 'name' is not found..
|
||||
updateGradVector_(name, other_grads, grad->grad);
|
||||
//updateGradVector_(name, other_grads, old_grad->grad);
|
||||
}
|
||||
else {
|
||||
for (auto it = other_grads.begin(); it != other_grads.end(); it++) {
|
||||
|
Loading…
Reference in New Issue
Block a user