Add polymer to phase usage.

This commit is contained in:
Tor Harald Sandve
2017-06-16 13:40:29 +02:00
parent 655b81c8d7
commit d247b05b6b
3 changed files with 15 additions and 0 deletions

View File

@@ -1481,6 +1481,8 @@ namespace Opm
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.");
case Phase::POLYMER: OPM_THROW(std::invalid_argument, "Polymer injector is not supported.");
}
OPM_THROW(std::logic_error, "Invalid state." );
}