use if constexpr to eliminate some polymer code

This commit is contained in:
Arne Morten Kvarving
2021-05-14 21:38:47 +02:00
parent 1fa74b5889
commit 83595d84c3
2 changed files with 4 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ namespace Opm
OPM_THROW(std::runtime_error, "solvent is not supported by multisegment well yet");
}
if (has_polymer) {
if constexpr (has_polymer) {
OPM_THROW(std::runtime_error, "polymer is not supported by multisegment well yet");
}