mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4964 from svenn-t/h2store_molefrac
Output XMF and YMF for H2STORE
This commit is contained in:
commit
ae51c7ce82
@ -515,7 +515,7 @@ assignToSolution(data::Solution& sol)
|
||||
data::TargetType::RESTART_SOLUTION);
|
||||
}
|
||||
|
||||
if (eclState_.runspec().co2Storage() && !rsw_.empty()) {
|
||||
if ((eclState_.runspec().co2Storage() || eclState_.runspec().h2Storage()) && !rsw_.empty()) {
|
||||
auto mfrac = std::vector<double>(this->rsw_.size(), 0.0);
|
||||
|
||||
std::transform(this->rsw_.begin(), this->rsw_.end(),
|
||||
@ -527,13 +527,14 @@ assignToSolution(data::Solution& sol)
|
||||
return FluidSystem::convertXwGToxwG(xwg, pvtReg - 1);
|
||||
});
|
||||
|
||||
sol.insert("XMFCO2",
|
||||
std::string moleFracName = eclState_.runspec().co2Storage() ? "XMFCO2" : "XMFH2";
|
||||
sol.insert(moleFracName,
|
||||
UnitSystem::measure::identity,
|
||||
std::move(mfrac),
|
||||
data::TargetType::RESTART_OPM_EXTENDED);
|
||||
}
|
||||
|
||||
if (eclState_.runspec().co2Storage() && !rvw_.empty()) {
|
||||
if ((eclState_.runspec().co2Storage() || eclState_.runspec().h2Storage()) && !rvw_.empty()) {
|
||||
auto mfrac = std::vector<double>(this->rvw_.size(), 0.0);
|
||||
|
||||
std::transform(this->rvw_.begin(), this->rvw_.end(),
|
||||
|
Loading…
Reference in New Issue
Block a user