mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
use if constexpr to eliminate some foam code
This commit is contained in:
@@ -73,7 +73,7 @@ namespace Opm
|
||||
OPM_THROW(std::runtime_error, "energy is not supported by multisegment well yet");
|
||||
}
|
||||
|
||||
if (Base::has_foam) {
|
||||
if constexpr (Base::has_foam) {
|
||||
OPM_THROW(std::runtime_error, "foam is not supported by multisegment well yet");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user