]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
disable checking MPI_init_thread return value because some implementations always...
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 18 Sep 2013 15:39:17 +0000 (15:39 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 18 Sep 2013 15:39:17 +0000 (15:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@30799 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/mpi.cc

index 42cb93d88e481f9f4d4b6aaa3f76edf14a6f0a61..4b93f9be560abc11f97a434f8872454ed2456c4b 100644 (file)
@@ -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

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.