]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a small preprocessor check for the correct inclusion of a suitable
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 18 Sep 2012 09:55:08 +0000 (09:55 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 18 Sep 2012 09:55:08 +0000 (09:55 +0000)
mpi.h header

git-svn-id: https://svn.dealii.org/branches/branch_cmake@26468 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/mpi.h

index 2fdb14da05da9a65957558e45f9588e0b05fb6fa..3be2ccc03c6af2fb5dec705a23bc957fea5753c3 100644 (file)
 
 #if defined(DEAL_II_COMPILER_SUPPORTS_MPI) || defined(DEAL_II_USE_PETSC)
 #  include <mpi.h>
+                                 // Check whether <mpi.h> is a suitable
+                                 // include for us (if MPI_SEEK_SET is not
+                                 // defined, we'll die anyway):
+#  ifndef MPI_SEEK_SET
+#    error "The buildsystem included an insufficient mpi.h header that does not export MPI_SEEK_SET"
+#  endif
+
 #else
                                  // without MPI, we would still like to use
                                  // some constructs with MPI data

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.