From: Matthias Maier Date: Thu, 7 Jul 2016 10:00:50 +0000 (-0500) Subject: Tests: Fix mpi_fe_field_function_01.mpirun=10 X-Git-Tag: v8.5.0-rc1~919^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c20310d47647f0ce5fab0f9419392a14cf021fe;p=dealii.git 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). --- 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)