drop using statement for ipr_a_

rather qualify member variable with this->
This commit is contained in:
Arne Morten Kvarving 2021-09-06 12:58:16 +02:00
parent 14273b8c2d
commit 115cfe26df
2 changed files with 4 additions and 5 deletions

View File

@ -180,7 +180,6 @@ namespace Opm
// multi-phase flow model
WellSegments::MultiPhaseModel multiphaseModel() const;
using Base::ipr_a_;
using Base::ipr_b_;
// protected functions from the Base class

View File

@ -852,7 +852,7 @@ namespace Opm
double temp = 0;
for (int p = 0; p < this->number_of_phases_; ++p) {
temp += ipr_a_[p] - ipr_b_[p] * bhp_limit;
temp += this->ipr_a_[p] - ipr_b_[p] * bhp_limit;
}
if (temp < 0.) {
this->operability_status_.operable_under_only_bhp_limit = false;
@ -903,7 +903,7 @@ namespace Opm
}
// initialize all the values to be zero to begin with
std::fill(ipr_a_.begin(), ipr_a_.end(), 0.);
std::fill(this->ipr_a_.begin(), this->ipr_a_.end(), 0.);
std::fill(ipr_b_.begin(), ipr_b_.end(), 0.);
const int nseg = this->numberOfSegments();
@ -960,7 +960,7 @@ namespace Opm
// TODO: there might be some indices related problems here
// phases vs components
// ipr values for the perforation
std::vector<double> ipr_a_perf(ipr_a_.size());
std::vector<double> ipr_a_perf(this->ipr_a_.size());
std::vector<double> ipr_b_perf(ipr_b_.size());
for (int p = 0; p < this->number_of_phases_; ++p) {
const double tw_mob = tw_perf * mob[p].value() * b_perf[p];
@ -990,7 +990,7 @@ namespace Opm
for (int p = 0; p < this->number_of_phases_; ++p) {
// TODO: double check the indices here
ipr_a_[ebosCompIdxToFlowCompIdx(p)] += ipr_a_perf[p];
this->ipr_a_[ebosCompIdxToFlowCompIdx(p)] += ipr_a_perf[p];
ipr_b_[ebosCompIdxToFlowCompIdx(p)] += ipr_b_perf[p];
}
}