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;