mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Move phase access
This commit is contained in:
parent
7cb7b0eb82
commit
4418fcc477
@ -100,15 +100,6 @@ public:
|
||||
|
||||
|
||||
|
||||
/// The number of phases present.
|
||||
int numPhases() const
|
||||
{
|
||||
return this->phase_usage_.num_phases;
|
||||
}
|
||||
|
||||
const PhaseUsage& phaseUsage() const {
|
||||
return this->phase_usage_;
|
||||
}
|
||||
|
||||
protected:
|
||||
WellContainer<Well::Status> status_;
|
||||
@ -118,9 +109,9 @@ protected:
|
||||
std::vector<double> bhp_;
|
||||
std::vector<double> thp_;
|
||||
WellContainer<std::vector<double>> wellrates_;
|
||||
PhaseUsage phase_usage_;
|
||||
|
||||
private:
|
||||
PhaseUsage phase_usage_;
|
||||
std::vector<double> temperature_;
|
||||
WellContainer<std::vector<double>> perfrates_;
|
||||
WellContainer<std::vector<double>> perfpress_;
|
||||
|
@ -63,7 +63,6 @@ public:
|
||||
using BaseType :: wellRates;
|
||||
using BaseType :: bhp;
|
||||
using BaseType :: perfPress;
|
||||
using BaseType :: numPhases;
|
||||
|
||||
explicit WellStateFullyImplicitBlackoil(const PhaseUsage& pu) :
|
||||
WellState(pu)
|
||||
@ -402,6 +401,15 @@ public:
|
||||
void shutWell(int well_index);
|
||||
void stopWell(int well_index);
|
||||
|
||||
/// The number of phases present.
|
||||
int numPhases() const
|
||||
{
|
||||
return this->phase_usage_.num_phases;
|
||||
}
|
||||
|
||||
const PhaseUsage& phaseUsage() const {
|
||||
return this->phase_usage_;
|
||||
}
|
||||
|
||||
private:
|
||||
std::vector<double> perfphaserates_;
|
||||
|
Loading…
Reference in New Issue
Block a user