From d08d30fc3c048ab2f169b7fe4f7731f0777ea937 Mon Sep 17 00:00:00 2001
From: "Dennis.Glaeser" <dennis.glaeser@iws.uni-stuttgart.de>
Date: Thu, 7 Mar 2019 11:51:56 +0100
Subject: [PATCH] [geometryisection] fix node order for tetrahedra

---
 dumux/common/geometry/geometryintersection.hh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dumux/common/geometry/geometryintersection.hh b/dumux/common/geometry/geometryintersection.hh
index 3dbd5f057a..6632086ed9 100644
--- a/dumux/common/geometry/geometryintersection.hh
+++ b/dumux/common/geometry/geometryintersection.hh
@@ -115,7 +115,7 @@ public:
                               {3, 2, 7, 6}, {1, 0, 3, 2}, {4, 5, 6, 7}};
                     break;
                 case 4: // tetrahedron
-                    facets = {{1, 2, 0}, {0, 1, 3}, {0, 3, 2}, {1, 2, 3}};
+                    facets = {{1, 0, 2}, {0, 1, 3}, {0, 3, 2}, {1, 2, 3}};
                     break;
                 default:
                     DUNE_THROW(Dune::NotImplemented, "Collision of segment and geometry of type "
@@ -166,7 +166,6 @@ public:
                 // use unscaled epsilon since t is in local coordinates
                 if (tfirst > tlast - eps_)
                     return false;
-
             }
         }
         // If we made it until here an intersection exists. We also export
-- 
GitLab