diff --git a/opm/simulators/wells/MultisegmentWell.hpp b/opm/simulators/wells/MultisegmentWell.hpp index 01925bfdc..ca02b4c17 100644 --- a/opm/simulators/wells/MultisegmentWell.hpp +++ b/opm/simulators/wells/MultisegmentWell.hpp @@ -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 diff --git a/opm/simulators/wells/MultisegmentWell_impl.hpp b/opm/simulators/wells/MultisegmentWell_impl.hpp index 3ad6c0571..c50cf61ed 100644 --- a/opm/simulators/wells/MultisegmentWell_impl.hpp +++ b/opm/simulators/wells/MultisegmentWell_impl.hpp @@ -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:: 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 kr(number_of_phases_, 0.0); std::vector density(number_of_phases_, 0.0);