Some minor changes as requested in review.

This commit is contained in:
Håkon Hægland 2023-03-31 09:26:28 +02:00
parent c2916bc7d9
commit 973a883043
2 changed files with 2 additions and 4 deletions

View File

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

View File

@ -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++) {