]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Disable warnings coming from mpi.h.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 10 Mar 2025 16:58:21 +0000 (10:58 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 11 Mar 2025 13:14:52 +0000 (07:14 -0600)
include/deal.II/base/mpi.h
include/deal.II/base/mpi_large_count.h
include/deal.II/base/mpi_stub.h
include/deal.II/lac/la_parallel_vector.h
source/base/exceptions.cc
source/base/mpi.cc

index 3bc3222e95aa9606c993ca47a20211189437c2dc..43850e40258dedf16983afe0ff12f9120528967a 100644 (file)
@@ -35,7 +35,9 @@
 #include <vector>
 
 #ifdef DEAL_II_WITH_MPI
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #  include <mpi.h>
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 #endif
 
 
index d7848a7938f21c2f1ca208365a8b4c447b6c4dd1..d87941c20bbb0d8fd9920c117751be10894b3d62 100644 (file)
 #include <deal.II/base/config.h>
 
 #ifdef DEAL_II_WITH_MPI
+
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #  include <mpi.h>
-// required for std::numeric_limits used below.
-#  include <limits>
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
+
 #  ifndef MPI_VERSION
 #    error "Your MPI implementation does not define MPI_VERSION!"
 #  endif
 #    error "BigMPICompat requires at least MPI 3.0"
 #  endif
 
+
+// required for std::numeric_limits used below.
+#  include <limits>
+
 DEAL_II_NAMESPACE_OPEN
 
 namespace Utilities
index 0970de1ae282220e91514da8e45e5f780b12cdb4..634dd8a4845bb954bb63210a130311d08461de39 100644 (file)
@@ -22,7 +22,9 @@
 // e.g., MPI_Comm in the API.
 
 #if defined(DEAL_II_WITH_MPI)
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #  include <mpi.h>
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 #else
 
 // Without MPI, we would still like to use some constructs with MPI
index 7c6e923751ff498e2772c42866be59557223e581..d476a1d4a9cc86706574bb0ebf3fc05207a5c57b 100644 (file)
@@ -34,7 +34,9 @@
 #include <memory>
 
 #if defined(DEAL_II_WITH_MPI)
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #  include <mpi.h>
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 #endif
 
 
index 924a64ac178b6bf20df2384b6e098928e132546f..f3c8407ab852beca90c6a68fb337b78020d3f884 100644 (file)
@@ -24,7 +24,9 @@
 #include <string>
 
 #ifdef DEAL_II_WITH_MPI
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #  include <mpi.h>
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 #endif
 
 #ifdef DEAL_II_TRILINOS_WITH_SEACAS
index 1e59d6a6075d7437a2bfde27fd4a006b1e587eb4..6a5a769cdee8226f753947f54b393e9f523402fe 100644 (file)
@@ -34,7 +34,9 @@
 #include <vector>
 
 #if defined(DEAL_II_WITH_MPI)
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #  include <mpi.h>
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 #endif
 
 

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.