Use well index for perforation rates

This commit is contained in:
Joakim Hove
2021-06-03 11:08:55 +02:00
parent 739f6ad28a
commit 1a6737aff3
6 changed files with 22 additions and 23 deletions

View File

@@ -846,7 +846,7 @@ checkMaxRatioLimitCompletions(const WellState& well_state,
double max_ratio_completion = 0;
const int np = number_of_phases_;
const auto * perf_phase_rates = &well_state.perfPhaseRates()[first_perf_ * np];
const auto * perf_phase_rates = well_state.perfPhaseRates(this->index_of_well_);
// look for the worst_offending_completion
for (const auto& completion : completions_) {
std::vector<double> completion_rates(np, 0.0);