mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
use if constexpr to eliminate some polymer code
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user