Use reference for WellInterface::parallel_well_info_

This commit is contained in:
Markus Blatt
2020-12-04 13:24:31 +01:00
parent eb03712027
commit 2e5b1c8d54
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -662,7 +662,7 @@ namespace Opm
// accumulate resWell_ and invDuneD_ in parallel to get effects of all perforations (might be distributed)
wellhelpers::sumDistributedWellEntries(invDuneD_[0][0], resWell_[0],
this->parallel_well_info_->communication());
this->parallel_well_info_.communication());
// add vol * dF/dt + Q to the well equations;
for (int componentIdx = 0; componentIdx < numWellConservationEq; ++componentIdx) {
// TODO: following the development in MSW, we need to convert the volume of the wellbore to be surface volume
+1 -1
View File
@@ -319,7 +319,7 @@ namespace Opm
Well well_ecl_;
const ParallelWellInfo* parallel_well_info_;
const ParallelWellInfo& parallel_well_info_;
const int current_step_;
+1 -1
View File
@@ -41,7 +41,7 @@ namespace Opm
const int first_perf_index,
const std::vector<PerforationData>& perf_data)
: well_ecl_(well)
, parallel_well_info_(&pw_info)
, parallel_well_info_(pw_info)
, current_step_(time_step)
, param_(param)
, rateConverter_(rate_converter)