From 15c4734ceeacdb1e0a5fbb1db21c9e5681975d61 Mon Sep 17 00:00:00 2001
From: Kilian Weishaupt <kilian.weishaupt@iws.uni-stuttgart.de>
Date: Thu, 23 Aug 2018 09:23:19 +0200
Subject: [PATCH] [freeflow][rans] Use ModelTraits::useMoles() locally

* fixes clang compiler error
---
 dumux/freeflow/rans/twoeq/kepsilon/problem.hh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dumux/freeflow/rans/twoeq/kepsilon/problem.hh b/dumux/freeflow/rans/twoeq/kepsilon/problem.hh
index ef99fbaaff..c1b2bde7a2 100644
--- a/dumux/freeflow/rans/twoeq/kepsilon/problem.hh
+++ b/dumux/freeflow/rans/twoeq/kepsilon/problem.hh
@@ -80,7 +80,6 @@ class KEpsilonProblem : public RANSProblem<TypeTag>
     static_assert(cellCenterOffset == ModelTraits::dim(), "cellCenterOffset must equal dim for staggered NavierStokes");
 
 public:
-    static constexpr bool useMoles = GET_PROP_VALUE(TypeTag, UseMoles);
 
     //! The constructor sets the gravity, if desired by the user.
     KEpsilonProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry, const std::string& paramGroup = "")
@@ -392,7 +391,7 @@ public:
 
             Scalar schmidtNumber = elemVolVars[scvf.insideScvIdx()].kinematicViscosity()
                                    / elemVolVars[scvf.insideScvIdx()].diffusionCoefficient(0, compIdx);
-            Scalar moleToMassConversionFactor = useMoles
+            Scalar moleToMassConversionFactor = ModelTraits::useMoles()
                                                 ? 1.0 : FluidSystem::molarMass(compIdx);
             wallFunctionFlux[compIdx] +=
                 -1.0 * (asImp_().dirichlet(element, scvf)[Indices::conti0EqIdx + compIdx]
-- 
GitLab