Added throw if unsupported unit in deck for fluid in place

This commit is contained in:
babrodtk 2016-12-16 13:40:20 +01:00
parent ccec17f81b
commit 841411037a

View File

@ -693,6 +693,9 @@ namespace Opm
else if (units.getType() == UnitSystem::UnitType::UNIT_TYPE_METRIC) {
fip[6] = unit::convert::to(fip[6], unit::barsa);
}
else {
OPM_THROW(std::runtime_error, "Unsupported unit type for fluid in place output.");
}
}