From baad3a772263c866ffe1b516c5ca6b2dbe160077 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 26 May 2021 14:31:57 +0200 Subject: [PATCH] eclproblem: use if constexpr for enableBrine --- ebos/eclproblem.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();