From b0bb6473c94aa5f62ff28d970c9432ecd4bddcfe Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 18 Nov 2024 11:41:34 +0100 Subject: [PATCH] connectionDensity: move to WellInterfaceGeneric --- opm/simulators/wells/WellInterface.hpp | 3 --- opm/simulators/wells/WellInterfaceGeneric.hpp | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/simulators/wells/WellInterface.hpp b/opm/simulators/wells/WellInterface.hpp index a4d37b7fe..71d4e9702 100644 --- a/opm/simulators/wells/WellInterface.hpp +++ b/opm/simulators/wells/WellInterface.hpp @@ -270,9 +270,6 @@ public: WellState& well_state, DeferredLogger& deferred_logger) const = 0; - virtual Scalar connectionDensity(const int globalConnIdx, - const int openConnIdx) const = 0; - /// \brief Wether the Jacobian will also have well contributions in it. virtual bool jacobianContainsWellContributions() const { diff --git a/opm/simulators/wells/WellInterfaceGeneric.hpp b/opm/simulators/wells/WellInterfaceGeneric.hpp index 032ce1b3f..f511eb097 100644 --- a/opm/simulators/wells/WellInterfaceGeneric.hpp +++ b/opm/simulators/wells/WellInterfaceGeneric.hpp @@ -200,6 +200,9 @@ public: return 0; } + virtual Scalar connectionDensity(const int globalConnIdx, + const int openConnIdx) const = 0; + protected: bool getAllowCrossFlow() const;