drop using statement for number_of_perforations_

rather qualify member variable with this->
This commit is contained in:
Arne Morten Kvarving 2021-09-06 12:58:16 +02:00
parent aa389ff4f8
commit 72b14cf07e
2 changed files with 2 additions and 3 deletions

View File

@ -181,7 +181,6 @@ namespace Opm
WellSegments::MultiPhaseModel multiphaseModel() const;
// protected member variables from the Base class
using Base::number_of_perforations_; // TODO: can use well_ecl_?
using Base::number_of_phases_;
// TODO: the current implementation really relies on the order of the

View File

@ -101,7 +101,7 @@ namespace Opm
this->initMatrixAndVectors(num_cells);
// calcuate the depth difference between the perforations and the perforated grid block
for (int perf = 0; perf < number_of_perforations_; ++perf) {
for (int perf = 0; perf < this->number_of_perforations_; ++perf) {
const int cell_idx = well_cells_[perf];
this->cell_perforation_depth_diffs_[perf] = depth_arg[cell_idx] - perf_depth_[perf];
}
@ -461,7 +461,7 @@ namespace Opm
MultisegmentWell<TypeTag>::
computePerfCellPressDiffs(const Simulator& ebosSimulator)
{
for (int perf = 0; perf < number_of_perforations_; ++perf) {
for (int perf = 0; perf < this->number_of_perforations_; ++perf) {
std::vector<double> kr(number_of_phases_, 0.0);
std::vector<double> density(number_of_phases_, 0.0);