Merge pull request #4842 from totto82/wellPressGW

use gas pressure for gas-water system in the well model
This commit is contained in:
Bård Skaflestad
2023-09-07 12:47:05 +02:00
committed by GitHub

View File

@@ -1208,10 +1208,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);
}
}