From be2b0211672df3f54c7402c9ff6a23792bf032fd Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Wed, 15 Feb 2023 11:10:32 +0100 Subject: [PATCH] Fix default alq injector --- opm/simulators/wells/WellInterfaceGeneric.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opm/simulators/wells/WellInterfaceGeneric.cpp b/opm/simulators/wells/WellInterfaceGeneric.cpp index a329bc7d1..4949d56b2 100644 --- a/opm/simulators/wells/WellInterfaceGeneric.cpp +++ b/opm/simulators/wells/WellInterfaceGeneric.cpp @@ -410,6 +410,10 @@ bool WellInterfaceGeneric::thpLimitViolatedButNotSwitched() const double WellInterfaceGeneric::getALQ(const WellState& well_state) const { + // no alq for injectors. + if (isInjector()) + return 0.0; + return well_state.getALQ(name()); }