From 7474f7e5074f85a0a3b59f50ddc28cdc86bb1b03 Mon Sep 17 00:00:00 2001 From: Kilian Weishaupt <kilian.weishaupt@iws.uni-stuttgart.de> Date: Mon, 18 Dec 2017 17:33:36 +0100 Subject: [PATCH] [navierstokesnc][localres] Fix dirichlet method --- dumux/freeflow/navierstokesnc/staggered/localresidual.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dumux/freeflow/navierstokesnc/staggered/localresidual.hh b/dumux/freeflow/navierstokesnc/staggered/localresidual.hh index d1d585d5f2..ed12268199 100644 --- a/dumux/freeflow/navierstokesnc/staggered/localresidual.hh +++ b/dumux/freeflow/navierstokesnc/staggered/localresidual.hh @@ -150,7 +150,7 @@ protected: { const auto& insideVolVars = elemVolVars[insideScv]; const Scalar massOrMoleFraction = useMoles ? insideVolVars.moleFraction(phaseIdx, compIdx) : insideVolVars.massFraction(phaseIdx, compIdx); - residual[eqIdx] = massOrMoleFraction - problem.dirichletAtPos(insideScv.center())[cellCenterIdx][eqIdx]; + residual[eqIdx] = massOrMoleFraction - problem.dirichletAtPos(insideScv.center())[eqIdx]; } } -- GitLab