From ec8e2766061060e68c951d2187938a6a1baaf84e Mon Sep 17 00:00:00 2001 From: Niklas Fehn Date: Fri, 8 Apr 2022 15:05:37 +0200 Subject: [PATCH] found bug in RemotePointEvaluation::point_found(i) for i=0 --- source/base/mpi_remote_point_evaluation.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/base/mpi_remote_point_evaluation.cc b/source/base/mpi_remote_point_evaluation.cc index 2f059ffb6c..4af01fa5cc 100644 --- a/source/base/mpi_remote_point_evaluation.cc +++ b/source/base/mpi_remote_point_evaluation.cc @@ -207,7 +207,7 @@ namespace Utilities const unsigned int i) const { AssertIndexRange(i, point_ptrs.size()); - return (point_ptrs[i] - point_ptrs[i - 1]) > 0; + return (point_ptrs[i] - (i > 0) ? point_ptrs[i - 1] : 0) > 0; } -- 2.39.5