Only shut down wells if under prediction-type control.

This commit is contained in:
Atgeirr Flø Rasmussen
2018-11-23 12:51:13 +01:00
parent 1979fc8f5d
commit 8bd3cbc1c1
4 changed files with 11 additions and 8 deletions

View File

@@ -231,6 +231,9 @@ namespace Opm
/// Returns true if the well has one or more THP limits/constraints.
bool wellHasTHPConstraints() const;
/// Returns true if the well is currently in prediction mode (i.e. not history mode).
bool underPredictionMode() const;
protected:
// to indicate a invalid completion
@@ -325,8 +328,6 @@ namespace Opm
bool checkRateEconLimits(const WellEconProductionLimits& econ_production_limits,
const WellState& well_state) const;
bool underPredictionMode() const;
double getTHPConstraint() const;
int getTHPControlIndex() const;