From 8796fa1ccc098783692f48cddc8fc7198ce39289 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Wed, 6 Sep 2023 13:46:18 +0200 Subject: [PATCH] use gas pressure for gas-water system in the well model --- opm/simulators/wells/WellInterface_impl.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/simulators/wells/WellInterface_impl.hpp b/opm/simulators/wells/WellInterface_impl.hpp index 19508584d..e24e88f7e 100644 --- a/opm/simulators/wells/WellInterface_impl.hpp +++ b/opm/simulators/wells/WellInterface_impl.hpp @@ -1200,10 +1200,10 @@ namespace Opm { if constexpr (Indices::oilEnabled) { return fs.pressure(FluidSystem::oilPhaseIdx); - } else if constexpr (Indices::waterEnabled) { - return fs.pressure(FluidSystem::waterPhaseIdx); - } else { + } else if constexpr (Indices::gasEnabled) { return fs.pressure(FluidSystem::gasPhaseIdx); + } else { + return fs.pressure(FluidSystem::waterPhaseIdx); } }