A point might be found on simultaneously on more than one process (e.g.,
also in the ghost layer of a neighboring process).
// ---------------------------------------------------------------------
//
-// Copyright (C) 2009 - 2015 by the deal.II authors
+// Copyright (C) 2009 - 2016 by the deal.II authors
//
// This file is part of the deal.II library.
//
point_found = false;
}
- Assert (Utilities::MPI::sum(point_found ? 1 : 0, MPI_COMM_WORLD) == 1,
- ExcInternalError());
+ // the point should be found at least once (it might also be found
+ // in the ghost layer)
+ Assert(Utilities::MPI::sum(point_found ? 1 : 0, MPI_COMM_WORLD) >= 1,
+ ExcInternalError());
}
if (Utilities::MPI::this_mpi_process (MPI_COMM_WORLD) == 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