Throw if solvent phase injected.

This commit is contained in:
Atgeirr Flø Rasmussen 2017-01-09 16:33:03 +01:00
parent e5bb786df2
commit f19c90bba7

View File

@ -1353,6 +1353,7 @@ namespace Opm
case Phase::OIL: return InjectionSpecification::OIL;
case Phase::WATER: return InjectionSpecification::WATER;
case Phase::GAS: return InjectionSpecification::GAS;
case Phase::SOLVENT: OPM_THROW(std::invalid_argument, "Solvent injector is not supported.");
}
OPM_THROW(std::logic_error, "Invalid state." );
}