mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #3339 from joakim-hove/perf-well-access
Perf well access
This commit is contained in:
@@ -1996,7 +1996,7 @@ namespace Opm {
|
||||
|
||||
auto& perf_pressure = well_state.perfPress(well_index);
|
||||
auto& perf_rates = well_state.perfRates(well_index);
|
||||
auto * perf_phase_rates = &well_state.mutable_perfPhaseRates()[wm.second[1]*np];
|
||||
auto * perf_phase_rates = well_state.perfPhaseRates(well_index);
|
||||
const auto& perf_data = this->well_perf_data_[well_index];
|
||||
|
||||
for (std::size_t perf_index = 0; perf_index < perf_data.size(); perf_index++) {
|
||||
@@ -3373,7 +3373,7 @@ namespace Opm {
|
||||
|
||||
auto& well_info = *local_parallel_well_info_[wellID];
|
||||
const int num_perf_this_well = well_info.communication().sum(well_perf_data_[wellID].size());
|
||||
auto * perf_phase_rate = &this->wellState().perfPhaseRates()[connpos];
|
||||
auto * perf_phase_rate = this->wellState().perfPhaseRates(wellID);
|
||||
|
||||
for (int perf = 0; perf < num_perf_this_well; ++perf) {
|
||||
const int cell_idx = well_perf_data_[wellID][perf].cell_index;
|
||||
|
||||
Reference in New Issue
Block a user