mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
removing well_potential_ from WellStateFullyImplicitBlackoil
This commit is contained in:
@@ -103,9 +103,6 @@ namespace Opm
|
|||||||
current_controls_[w] = well_controls_get_current(wells->ctrls[w]);
|
current_controls_[w] = well_controls_get_current(wells->ctrls[w]);
|
||||||
}
|
}
|
||||||
|
|
||||||
well_potentials_.clear();
|
|
||||||
well_potentials_.resize(nperf * np, 0.0);
|
|
||||||
|
|
||||||
is_new_well_.resize(nw, true);
|
is_new_well_.resize(nw, true);
|
||||||
|
|
||||||
// intialize wells that have been there before
|
// intialize wells that have been there before
|
||||||
@@ -207,10 +204,6 @@ namespace Opm
|
|||||||
std::vector<int>& currentControls() { return current_controls_; }
|
std::vector<int>& currentControls() { return current_controls_; }
|
||||||
const std::vector<int>& currentControls() const { return current_controls_; }
|
const std::vector<int>& currentControls() const { return current_controls_; }
|
||||||
|
|
||||||
/// One rate per phase and well connection.
|
|
||||||
std::vector<double>& wellPotentials() { return well_potentials_; }
|
|
||||||
const std::vector<double>& wellPotentials() const { return well_potentials_; }
|
|
||||||
|
|
||||||
data::Wells report(const PhaseUsage &pu) const override {
|
data::Wells report(const PhaseUsage &pu) const override {
|
||||||
data::Wells res = WellState::report(pu);
|
data::Wells res = WellState::report(pu);
|
||||||
|
|
||||||
@@ -275,7 +268,6 @@ namespace Opm
|
|||||||
private:
|
private:
|
||||||
std::vector<double> perfphaserates_;
|
std::vector<double> perfphaserates_;
|
||||||
std::vector<int> current_controls_;
|
std::vector<int> current_controls_;
|
||||||
std::vector<double> well_potentials_;
|
|
||||||
|
|
||||||
// marking whether the well is just added
|
// marking whether the well is just added
|
||||||
// for newly added well, the current initialized rates from WellState
|
// for newly added well, the current initialized rates from WellState
|
||||||
|
|||||||
@@ -57,7 +57,6 @@ namespace Opm
|
|||||||
using BaseType :: numPhases;
|
using BaseType :: numPhases;
|
||||||
using BaseType :: perfPhaseRates;
|
using BaseType :: perfPhaseRates;
|
||||||
using BaseType :: currentControls;
|
using BaseType :: currentControls;
|
||||||
using BaseType :: wellPotentials;
|
|
||||||
|
|
||||||
/// Allocate and initialize if wells is non-null. Also tries
|
/// Allocate and initialize if wells is non-null. Also tries
|
||||||
/// to give useful initial values to the bhp(), wellRates()
|
/// to give useful initial values to the bhp(), wellRates()
|
||||||
|
|||||||
Reference in New Issue
Block a user