eclproblem: use if constexpr for enableBrine

This commit is contained in:
Arne Morten Kvarving 2021-05-26 14:31:57 +02:00
parent 68f9aeb78f
commit baad3a7722

View File

@ -1924,7 +1924,7 @@ public:
if constexpr (enablePolymerMolarWeight)
values[Indices::polymerMoleWeightIdx]= polymerMoleWeight_[globalDofIdx];
if (enableBrine)
if constexpr (enableBrine)
values[Indices::saltConcentrationIdx] = initialFluidStates_[globalDofIdx].saltConcentration();
values.checkDefined();