Merge pull request #1857 from totto82/fix_fip_seg_fault

fix typo in fip output
This commit is contained in:
Bård Skaflestad 2019-05-23 10:38:07 +02:00 committed by GitHub
commit a618a1a777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1231,7 +1231,7 @@ private:
// Gas dissolved in oil and vaporized oil
Scalar gasInPlaceLiquid = Opm::getValue(fs.Rs()) * fip[oilPhaseIdx];
Scalar oilInPlaceGas = Opm::getValue(fs.Rv()) * fip[gasPhaseIdx];
if (fip_[FipDataType::GasInPlaceInGasPhase].size() > 0)
if (fip_[FipDataType::GasInPlaceInLiquidPhase].size() > 0)
fip_[FipDataType::GasInPlaceInLiquidPhase][globalDofIdx] = gasInPlaceLiquid;
if (fip_[FipDataType::OilInPlaceInGasPhase].size() > 0)
fip_[FipDataType::OilInPlaceInGasPhase][globalDofIdx] = oilInPlaceGas;