Use well index when iterating over brine perforation rates

This commit is contained in:
Joakim Hove
2021-05-21 07:49:09 +02:00
parent f9e142dc8d
commit 2f901f1012
2 changed files with 6 additions and 4 deletions

View File

@@ -844,7 +844,8 @@ namespace Opm
cq_s_sm *= extendEval(intQuants.fluidState().saltConcentration());
}
// Note. Efficiency factor is handled in the output layer
well_state.perfRateBrine()[first_perf_ + perf] = cq_s_sm.value();
auto * perf_rate_brine = &well_state.perfRateBrine()[this->first_perf_];
perf_rate_brine[perf] = cq_s_sm.value();
cq_s_sm *= well_efficiency_factor_;
connectionRates[perf][contiBrineEqIdx] = Base::restrictEval(cq_s_sm);