Merge pull request #1195 from akva2/quell_unhandled_warning

fixed: add ENERGY to switch to quell unhandled enum value warning
This commit is contained in:
Bård Skaflestad 2017-12-05 19:51:17 +01:00 committed by GitHub
commit efc2915b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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