mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 08:54:53 -05:00
use correct molarmass when converting XMFCO2
This commit is contained in:
1 parent
b8032c12bb
commit
369a27e80d
1 file changed
+1
-1
@@ -841,7 +841,7 @@ assignToSolution(data::Solution& sol)
|
||||
std::vector<double> mfrac(rsw_.size(), 0.0);
|
||||
const auto& pvtnum = eclState_.fieldProps().get_int("PVTNUM");
|
||||
for (size_t i = 0; i < rsw_.size(); ++i) {
|
||||
mfrac[i] = FluidSystem::convertXoGToxoG(FluidSystem::convertRswToXwG(rsw_[i], pvtnum[i]-1), pvtnum[i]-1);
|
||||
mfrac[i] = FluidSystem::convertXwGToxwG(FluidSystem::convertRswToXwG(rsw_[i], pvtnum[i]-1), pvtnum[i]-1);
|
||||
}
|
||||
sol.insert("XMFCO2", UnitSystem::measure::identity, std::move(mfrac), data::TargetType::RESTART_AUXILIARY);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user