mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
drop using statement for number_of_perforations_
rather qualify member variable with this->
This commit is contained in:
parent
aa389ff4f8
commit
72b14cf07e
@ -181,7 +181,6 @@ namespace Opm
|
|||||||
WellSegments::MultiPhaseModel multiphaseModel() const;
|
WellSegments::MultiPhaseModel multiphaseModel() const;
|
||||||
|
|
||||||
// protected member variables from the Base class
|
// protected member variables from the Base class
|
||||||
using Base::number_of_perforations_; // TODO: can use well_ecl_?
|
|
||||||
using Base::number_of_phases_;
|
using Base::number_of_phases_;
|
||||||
|
|
||||||
// TODO: the current implementation really relies on the order of the
|
// TODO: the current implementation really relies on the order of the
|
||||||
|
@ -101,7 +101,7 @@ namespace Opm
|
|||||||
this->initMatrixAndVectors(num_cells);
|
this->initMatrixAndVectors(num_cells);
|
||||||
|
|
||||||
// calcuate the depth difference between the perforations and the perforated grid block
|
// 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];
|
const int cell_idx = well_cells_[perf];
|
||||||
this->cell_perforation_depth_diffs_[perf] = depth_arg[cell_idx] - perf_depth_[perf];
|
this->cell_perforation_depth_diffs_[perf] = depth_arg[cell_idx] - perf_depth_[perf];
|
||||||
}
|
}
|
||||||
@ -461,7 +461,7 @@ namespace Opm
|
|||||||
MultisegmentWell<TypeTag>::
|
MultisegmentWell<TypeTag>::
|
||||||
computePerfCellPressDiffs(const Simulator& ebosSimulator)
|
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> kr(number_of_phases_, 0.0);
|
||||||
std::vector<double> density(number_of_phases_, 0.0);
|
std::vector<double> density(number_of_phases_, 0.0);
|
||||||
|
Loading…
Reference in New Issue
Block a user