Merge pull request #1132 from atgeirr/throw-on-solvent
Throw if solvent phase injected.
This commit is contained in:
commit
8851f072a3
|
@ -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." );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user