mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use well index for perforation rates
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user