From 955cdbf02f8ada63efd8b7ca599ffe06d6f2810b Mon Sep 17 00:00:00 2001 From: David Landa Marban Date: Tue, 30 Apr 2024 11:51:16 +0200 Subject: [PATCH] Bug fix massGas in place --- opm/simulators/flow/OutputBlackoilModule.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/flow/OutputBlackoilModule.hpp b/opm/simulators/flow/OutputBlackoilModule.hpp index ef344328d..11c6b284b 100644 --- a/opm/simulators/flow/OutputBlackoilModule.hpp +++ b/opm/simulators/flow/OutputBlackoilModule.hpp @@ -1610,7 +1610,7 @@ private: const Scalar mM = FluidSystem::molarMass(gasCompIdx, fs.pvtRegionIndex()); const Scalar massGas = (1 - xgW) * pv * rhog; if (!this->fip_[Inplace::Phase::CO2Mass].empty()) { - this->fip_[Inplace::Phase::CO2Mass][globalDofIdx] = massGas; + this->fip_[Inplace::Phase::CO2Mass][globalDofIdx] = massGas * sg; } if (!this->fip_[Inplace::Phase::CO2InGasPhaseInMob].empty()) {