From a5abbaaa2ca2a7a133d86736096d3855ed641179 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Tue, 26 Jul 2016 11:21:03 +0200
Subject: [PATCH] [fix] Make compile for dim=2, dimw=2. Use box internal
 crossProduct method.

---
 dumux/implicit/box/fvelementgeometry.hh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dumux/implicit/box/fvelementgeometry.hh b/dumux/implicit/box/fvelementgeometry.hh
index d438c51464..a5d860a4f6 100644
--- a/dumux/implicit/box/fvelementgeometry.hh
+++ b/dumux/implicit/box/fvelementgeometry.hh
@@ -894,8 +894,9 @@ public:
                 const auto faceVec = elementGlobal - edgeCoordinates[scvfIdx];
                 const auto elemVec1 = elementGlobal - geometry.corner(0);
                 const auto elemVec2 = elementGlobal - geometry.corner(1);
-                const auto elemNormal = Dumux::crossProduct(elemVec1, elemVec2);
-                scvFace.normal = Dumux::crossProduct(faceVec, elemNormal);
+                GlobalPosition elemNormal;
+                this->crossProduct(elemNormal, elemVec1, elemVec2);
+                this->crossProduct(scvFace.normal, faceVec, elemNormal);
 
                 const auto diffVec = subContVol[j].global - subContVol[i].global;
                 // make sure the normal points to the right direction
-- 
GitLab