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:
@@ -2637,8 +2637,7 @@ namespace Opm
|
||||
|
||||
// calculating the perforation rate for each perforation that belongs to this segment
|
||||
const EvalWell seg_pressure = getSegmentPressure(seg);
|
||||
const int rate_start_offset = first_perf_ * number_of_phases_;
|
||||
auto * perf_rates = &well_state.mutable_perfPhaseRates()[rate_start_offset];
|
||||
auto * perf_rates = well_state.perfPhaseRates(this->index_of_well_);
|
||||
auto& perf_press_state = well_state.perfPress(this->index_of_well_);
|
||||
for (const int perf : segment_perforations_[seg]) {
|
||||
const int cell_idx = well_cells_[perf];
|
||||
|
||||
Reference in New Issue
Block a user