Use WellContainer to manage perf phase rates

This commit is contained in:
Joakim Hove
2021-06-04 10:41:07 +02:00
parent 76292552ec
commit 6a21371b59
6 changed files with 23 additions and 25 deletions

View File

@@ -2637,7 +2637,7 @@ namespace Opm
// calculating the perforation rate for each perforation that belongs to this segment
const EvalWell seg_pressure = getSegmentPressure(seg);
auto * perf_rates = well_state.perfPhaseRates(this->index_of_well_);
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];