diff --git a/dumux/freeflow/staggered/fluxvariables.hh b/dumux/freeflow/staggered/fluxvariables.hh index 86a2e12b126d17e51a17b5bf7f26fc4ce602aa7c..b0c09bd413b038d16b29516ed395bb39aeec3689 100644 --- a/dumux/freeflow/staggered/fluxvariables.hh +++ b/dumux/freeflow/staggered/fluxvariables.hh @@ -117,7 +117,7 @@ public: const auto& upstreamVolVars = insideIsUpstream ? insideVolVars : outsideVolVars; const auto& downstreamVolVars = insideIsUpstream ? insideVolVars : outsideVolVars; - const Scalar upWindWeight = getParamFromGroup<Scalar>(GET_PROP_VALUE(TypeTag, ModelParameterGroup), "Implicit.UpwindWeight"); + static const Scalar upWindWeight = getParamFromGroup<Scalar>(GET_PROP_VALUE(TypeTag, ModelParameterGroup), "Implicit.UpwindWeight"); flux = (upWindWeight * upstreamVolVars.density() + (1.0 - upWindWeight) * downstreamVolVars.density()) * velocity;