From 984675a91befe5f91121617f922fadfd56d1a760 Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Wed, 7 Feb 2018 14:20:44 +0100 Subject: [PATCH] [geometry][grahamscan] Fix assert --- dumux/common/geometry/grahamconvexhull.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dumux/common/geometry/grahamconvexhull.hh b/dumux/common/geometry/grahamconvexhull.hh index ffd326ac28..2472c0f5b7 100644 --- a/dumux/common/geometry/grahamconvexhull.hh +++ b/dumux/common/geometry/grahamconvexhull.hh @@ -150,9 +150,9 @@ grahamConvexHull2d3d(std::vector<Dune::FieldVector<ctype, 3>>& points) // make sure the queue doesn't get empty if (convexHull.size() == 1) { - // before we reach size-2 there has to be a good candidate + // before we reach i=size-1 there has to be a good candidate // as not all points are colinear (a non-zero plane normal exists) - assert(i < points.size()-2); + assert(i < points.size()-1); p = points[i++]; } else -- GitLab