From 75158f9c75f0dccb3a47cba4ea89013460b20f98 Mon Sep 17 00:00:00 2001 From: heister Date: Wed, 18 Sep 2013 15:39:17 +0000 Subject: [PATCH] disable checking MPI_init_thread return value because some implementations always return _SINGLE. git-svn-id: https://svn.dealii.org/trunk@30799 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/base/mpi.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deal.II/source/base/mpi.cc b/deal.II/source/base/mpi.cc index 42cb93d88e..4b93f9be56 100644 --- a/deal.II/source/base/mpi.cc +++ b/deal.II/source/base/mpi.cc @@ -361,8 +361,10 @@ namespace Utilities mpi_err = MPI_Init_thread(&argc, &argv, wanted, &provided); AssertThrow (mpi_err == 0, ExcMessage ("MPI could not be initialized.")); - Assert(max_num_threads==1 || provided != MPI_THREAD_SINGLE, - ExcMessage("MPI reports that we are not allowed to use multiple threads.")); + + // disable for now because at least some implementations always return MPI_THREAD_SINGLE. + //Assert(max_num_threads==1 || provided != MPI_THREAD_SINGLE, + // ExcMessage("MPI reports that we are not allowed to use multiple threads.")); #else // make sure the compiler doesn't warn // about these variables -- 2.39.5