use gas pressure for gas-water system in the well model

This commit is contained in:
Tor Harald Sandve committed 2023-09-06 13:46:18 +02:00
1 parent 392573289f
commit 8796fa1ccc
1 file changed
+3 -3
+3 -3
View File
@@ -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);
}
}