BlackoilWellModel: move forceShutWellByNameIfPredictionMode to generic class

This commit is contained in:
Arne Morten Kvarving
2021-06-07 12:20:49 +02:00
parent 54ff1c4c45
commit ad4b34dc30
4 changed files with 36 additions and 39 deletions

View File

@@ -141,6 +141,11 @@ public:
/// Return true if any well has a THP constraint.
bool hasTHPConstraints() const;
/// Shut down any single well, but only if it is in prediction mode.
/// Returns true if the well was actually found and shut.
bool forceShutWellByNameIfPredictionMode(const std::string& wellname,
const double simulation_time);
protected:
GroupState& groupState() { return this->active_wgstate_.group_state; }