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 authored and GitHub committed 2023-09-07 12:47:05 +02:00
commit bb04054d2c
1 file changed
+3 -3
+3 -3
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);
}
}