Merge pull request #1132 from atgeirr/throw-on-solvent

Throw if solvent phase injected.
This commit is contained in:
Atgeirr Flø Rasmussen 2017-01-10 08:28:16 +01:00 committed by GitHub
commit 8851f072a3

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." );
}