diff --git a/opm/simulators/wells/MultisegmentWell.hpp b/opm/simulators/wells/MultisegmentWell.hpp index 319dc6244..01925bfdc 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::ref_depth_; using Base::number_of_perforations_; // TODO: can use well_ecl_? using Base::number_of_phases_; diff --git a/opm/simulators/wells/MultisegmentWell_impl.hpp b/opm/simulators/wells/MultisegmentWell_impl.hpp index 2e50c3072..3ad6c0571 100644 --- a/opm/simulators/wells/MultisegmentWell_impl.hpp +++ b/opm/simulators/wells/MultisegmentWell_impl.hpp @@ -908,7 +908,7 @@ namespace Opm const int nseg = this->numberOfSegments(); double seg_bhp_press_diff = 0; - double ref_depth = ref_depth_; + double ref_depth = this->ref_depth_; for (int seg = 0; seg < nseg; ++seg) { // calculating the perforation rate for each perforation that belongs to this segment const double segment_depth = this->segmentSet()[seg].depth();