diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index a32cb06bb..693c9f672 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -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();