]> https://gitweb.dealii.org/ - dealii.git/commitdiff
found bug in RemotePointEvaluation::point_found(i) for i=0
authorNiklas Fehn <fehn@lnm.mw.tum.de>
Fri, 8 Apr 2022 13:05:37 +0000 (15:05 +0200)
committerNiklas Fehn <fehn@lnm.mw.tum.de>
Fri, 8 Apr 2022 13:05:37 +0000 (15:05 +0200)
source/base/mpi_remote_point_evaluation.cc

index 2f059ffb6c643f6e909fdc439035616d7ac793a6..4af01fa5cc95fde6f4fbe5e9be5d92abea7b8e20 100644 (file)
@@ -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;
     }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.