mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
output gas pressure for gas-water case
This commit is contained in:
@@ -234,11 +234,11 @@ public:
|
||||
if (FluidSystem::phaseIsActive(oilPhaseIdx)) {
|
||||
this->oilPressure_[globalDofIdx] = getValue(fs.pressure(oilPhaseIdx));
|
||||
}else{
|
||||
// put pressure in oil pressure for output
|
||||
if (FluidSystem::phaseIsActive(waterPhaseIdx)) {
|
||||
this->oilPressure_[globalDofIdx] = getValue(fs.pressure(waterPhaseIdx));
|
||||
} else {
|
||||
// put pressure in oil pressure for output. Use gas if oil is not present
|
||||
if (FluidSystem::phaseIsActive(gasPhaseIdx)) {
|
||||
this->oilPressure_[globalDofIdx] = getValue(fs.pressure(gasPhaseIdx));
|
||||
} else { // use water if neither oil nor gas is present
|
||||
this->oilPressure_[globalDofIdx] = getValue(fs.pressure(waterPhaseIdx));
|
||||
}
|
||||
}
|
||||
Valgrind::CheckDefined(this->oilPressure_[globalDofIdx]);
|
||||
|
||||
Reference in New Issue
Block a user