SimulatorFullyImplicitBlackoilOutput: print warnings instead of silently ignoring requests for bubble/dew point pressure output

This commit is contained in:
Andreas Lauser 2017-04-18 11:09:09 +02:00
parent 7e388376af
commit e24d8c3a57

View File

@ -771,12 +771,20 @@ namespace Opm
std::move( sd.getCellData("PBUB") ),
data::TargetType::RESTART_AUXILIARY);
}
else if (log) {
Opm::OpmLog::warning("Output of bubble point pressure requested but not available in this simulator. Ignoring.");
}
if (sd.hasCellData("PDEW")) {
output.insert("PDEW",
Opm::UnitSystem::measure::pressure,
std::move( sd.getCellData("PDEW") ),
data::TargetType::RESTART_AUXILIARY);
}
else if (log) {
Opm::OpmLog::warning("Output of dew point pressure requested but not available in this simulator. Ignoring.");
}
}
if (sd.hasCellData("SOMAX")) {