From e6d3b4f1ea3df4863066ff70af3673cadcdda48d Mon Sep 17 00:00:00 2001 From: Timo Koch Date: Mon, 11 Sep 2017 12:04:34 +0200 Subject: [PATCH] Merge branch 'fix/bBoxTre' into 'next' [boundingBoxTreeHelper] Fix bug when checking if point is in interval (2D) See merge request !551 --- dumux/common/boundingboxtree.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dumux/common/boundingboxtree.hh b/dumux/common/boundingboxtree.hh index 5a55febf9a..777f644e68 100644 --- a/dumux/common/boundingboxtree.hh +++ b/dumux/common/boundingboxtree.hh @@ -539,7 +539,8 @@ public: const double n = crossProduct(v1, v2); // early return if the cross product is larger than zero - if (n > v1norm*eps_) + using std::abs; + if (abs(n) > v1norm*eps_) return false; // we know the points are aligned -- GitLab