Use well index for brine perf rates

This commit is contained in:
Joakim Hove
2021-06-02 11:56:18 +02:00
parent fa829cce7a
commit a2195f367d
3 changed files with 10 additions and 5 deletions

View File

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