From: Niklas Fehn Date: Fri, 8 Apr 2022 13:05:37 +0000 (+0200) Subject: found bug in RemotePointEvaluation::point_found(i) for i=0 X-Git-Tag: v9.4.0-rc1~328^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec8e2766061060e68c951d2187938a6a1baaf84e;p=dealii.git found bug in RemotePointEvaluation::point_found(i) for i=0 --- 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; }