From 9c20310d47647f0ce5fab0f9419392a14cf021fe Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 7 Jul 2016 05:00:50 -0500 Subject: [PATCH] Tests: Fix mpi_fe_field_function_01.mpirun=10 A point might be found on simultaneously on more than one process (e.g., also in the ghost layer of a neighboring process). --- tests/mpi/fe_field_function_01.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/mpi/fe_field_function_01.cc b/tests/mpi/fe_field_function_01.cc index 6b6692032a..8305bbd4e7 100644 --- a/tests/mpi/fe_field_function_01.cc +++ b/tests/mpi/fe_field_function_01.cc @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// 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. // @@ -106,8 +106,10 @@ void test() 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) -- 2.39.5