From e5fcada5c0e2222682a4b668841428e1e29229e5 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Thu, 12 Nov 2015 12:17:39 +0100
Subject: [PATCH] [bboxtree][fixup] Use correct signs for epsilon comparison

---
 dumux/common/boundingboxtree.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dumux/common/boundingboxtree.hh b/dumux/common/boundingboxtree.hh
index a7954cf9b4..da1c09482d 100644
--- a/dumux/common/boundingboxtree.hh
+++ b/dumux/common/boundingboxtree.hh
@@ -217,7 +217,7 @@ public:
             // If the point is not exactly on the plane the
             // points have to be on the same side
             const double eps = eps_ * v.two_norm();
-            if (t1 < eps && t1 > -eps && std::signbit(t1) != std::signbit(t2))
+            if ((t1 > eps || t1 < -eps) && std::signbit(t1) != std::signbit(t2))
                 return false;
         }
         return true;
-- 
GitLab