From 36c56b1cb42c617d82084081602a45a5fcf5ca60 Mon Sep 17 00:00:00 2001
From: Thomas Fetzer <thomas.fetzer@iws.uni-stuttgart.de>
Date: Tue, 3 Jul 2018 11:05:27 +0200
Subject: [PATCH] [freeflow] Fix calculation of Neumann boundaries

---
 dumux/freeflow/navierstokes/staggered/localresidual.hh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dumux/freeflow/navierstokes/staggered/localresidual.hh b/dumux/freeflow/navierstokes/staggered/localresidual.hh
index 87d98effe3..3f2b0a71a0 100644
--- a/dumux/freeflow/navierstokes/staggered/localresidual.hh
+++ b/dumux/freeflow/navierstokes/staggered/localresidual.hh
@@ -300,8 +300,7 @@ protected:
                                            * extrusionFactor * scvf.area();
 
                 // treat the remaining (normal) faces of the staggered control volume
-                FluxVariables fluxVars;
-                residual += fluxVars.computeLateralMomentumFlux(problem, element, scvf, fvGeometry, elemVolVars, elemFaceVars);
+                residual += computeFluxForFace(problem, element, scvf, fvGeometry, elemVolVars, elemFaceVars, elemFluxVarsCache);
             }
             else if(bcTypes.isSymmetry())
             {
-- 
GitLab