From 0c1ed25eb1c537d792746090761dfb3509321ea2 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 5 Dec 2017 16:27:42 +0100 Subject: [PATCH] fixed: add ENERGY to switch to quell unhandled enum value warning --- opm/core/wells/WellsGroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/core/wells/WellsGroup.cpp b/opm/core/wells/WellsGroup.cpp index c3dbdc1c..dbb5f061 100644 --- a/opm/core/wells/WellsGroup.cpp +++ b/opm/core/wells/WellsGroup.cpp @@ -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." ); }