only output the bubble and dew point pressures if they are available

This commit is contained in:
Andreas Lauser 2017-04-18 10:21:26 +02:00
parent 2b0ebe0832
commit 7e388376af

View File

@ -765,15 +765,19 @@ namespace Opm
*/
if (vapour_active && liquid_active && rstKeywords["PBPD"] > 0) {
rstKeywords["PBPD"] = 0;
if (sd.hasCellData("PBUB")) {
output.insert("PBUB",
Opm::UnitSystem::measure::pressure,
std::move( sd.getCellData("PBUB") ),
data::TargetType::RESTART_AUXILIARY);
}
if (sd.hasCellData("PDEW")) {
output.insert("PDEW",
Opm::UnitSystem::measure::pressure,
std::move( sd.getCellData("PDEW") ),
data::TargetType::RESTART_AUXILIARY);
}
}
if (sd.hasCellData("SOMAX")) {
output.insert("SOMAX",