use if constexpr to eliminate some solvent code

This commit is contained in:
Arne Morten Kvarving
2021-05-14 21:38:47 +02:00
parent 842e0a53a4
commit 6157122bd8
2 changed files with 20 additions and 20 deletions

View File

@@ -61,7 +61,7 @@ namespace Opm
, segment_phase_densities_(numberOfSegments(), std::vector<EvalWell>(num_components_, 0.0)) // number of phase here?
{
// not handling solvent or polymer for now with multisegment well
if (has_solvent) {
if constexpr (has_solvent) {
OPM_THROW(std::runtime_error, "solvent is not supported by multisegment well yet");
}