reorganize (Std|MS)Well::computeWellPotentials

put shared parts in WellInterfaceGeneric::computeWellPotentials and
WellInterfaceGeneric::checkNegativeWellPotentials
This commit is contained in:
Arne Morten Kvarving
2023-05-12 12:53:59 +02:00
parent 4528f7800b
commit 768a4903a3
4 changed files with 98 additions and 111 deletions

View File

@@ -214,6 +214,14 @@ protected:
bool wellUnderZeroRateTarget(const SummaryState& summary_state,
const WellState& well_state) const;
std::pair<bool,bool>
computeWellPotentials(std::vector<double>& well_potentials,
const WellState& well_state);
void checkNegativeWellPotentials(std::vector<double>& well_potentials,
const bool checkOperability,
DeferredLogger& deferred_logger);
// definition of the struct OperabilityStatus
struct OperabilityStatus {
bool isOperableAndSolvable() const {