diff --git a/dumux/common/geometry/grahamconvexhull.hh b/dumux/common/geometry/grahamconvexhull.hh index ffd326ac2818a680c4ac5e3963d37079ddb4d90d..2472c0f5b7a9cebaf482d817b4f38a9e37fd991b 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