From 2ff8653e00446c79242f0f340edd9c9c86579c40 Mon Sep 17 00:00:00 2001
From: Sina Ackermann <sina.ackermann@iws.uni-stuttgart.de>
Date: Fri, 10 Mar 2017 10:43:22 +0100
Subject: [PATCH] [staggeredGrid][nonisothermal] Fix Fourier's law for
 staggered grid

---
 dumux/discretization/staggered/freeflow/fourierslaw.hh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dumux/discretization/staggered/freeflow/fourierslaw.hh b/dumux/discretization/staggered/freeflow/fourierslaw.hh
index 8cb9b1d755..3b75dd2baa 100644
--- a/dumux/discretization/staggered/freeflow/fourierslaw.hh
+++ b/dumux/discretization/staggered/freeflow/fourierslaw.hh
@@ -77,6 +77,7 @@ public:
     using CacheFiller = FluxVariablesCaching::EmptyCacheFiller<TypeTag>;
 
     static CellCenterPrimaryVariables diffusiveFluxForCellCenter(const Problem& problem,
+                                                           const Element& element,
                                                            const FVElementGeometry& fvGeometry,
                                                            const ElementVolumeVariables& elemVolVars,
                                                            const SubControlVolumeFace &scvf)
@@ -112,7 +113,7 @@ public:
                 else
                 {
                     distance = (insideScv.dofPosition() - scvf.ipGlobal()).two_norm();
-                    outsideTemp = problem.dirichletAtPos(scvf.center())[energyBalanceIdx]);
+                    outsideTemp = problem.dirichletAtPos(scvf.center())[energyBalanceIdx];
                 }
         }
         else
-- 
GitLab