]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Don't include mpi.h directly.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 11 Mar 2025 03:39:52 +0000 (21:39 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 11 Mar 2025 13:14:52 +0000 (07:14 -0600)
tests/base/mpi_exceptions.cc
tests/mpi/petsc_01.cc
tests/mpi/petsc_02.cc
tests/mpi/petsc_03.cc
tests/mpi/refine_and_coarsen_fixed_number_06.cc
tests/mpi/simple_mpi_01.cc
tests/mpi/trilinos_bug_5609.cc
tests/quick_tests/mpi.cc
tests/sundials/n_vector.cc
tests/trilinos/renumbering_01.cc

index 13d50a00b1db0ef5e1410fb03c2a52a1a65fd967..e36c88b96d9192a809c2f7fd20123ea1ea1f5bce 100644 (file)
@@ -17,8 +17,7 @@
 // exception messages to the screen.
 
 #include <deal.II/base/exceptions.h>
-
-#include <mpi.h>
+#include <deal.II/base/mpi.h>
 
 #include <vector>
 
index 394ff9a20ad6441b6a2b4c106b7f6cef29548090..0e898d756f2f0f7f9ddf03b40927ada9793db424 100644 (file)
@@ -19,6 +19,7 @@
 // rows that are emptied with clear_rows(). This results in errors
 // when reusing the matrix later.
 
+#include <deal.II/base/mpi.h>
 #include <deal.II/base/utilities.h>
 
 #include <deal.II/lac/dynamic_sparsity_pattern.h>
@@ -26,8 +27,6 @@
 
 #include "../tests.h"
 
-// #include <mpi.h>
-
 
 void
 test()
index a8887ab8b5b8560cef8cd1b032f8ce76e4d39c93..32076ff512da3a8009c1d081c77cf48c4e0737a3 100644 (file)
@@ -18,6 +18,7 @@
 // does matrix-assembly, it calls compress() inside and the others don't.
 // We should implement this like in PETSc::MPI::Vector.
 
+#include <deal.II/base/mpi.h>
 #include <deal.II/base/utilities.h>
 
 #include <deal.II/lac/dynamic_sparsity_pattern.h>
@@ -25,8 +26,6 @@
 
 #include "../tests.h"
 
-// #include <mpi.h>
-
 
 void
 test()
index 645cc1bca4f5781e5af985568c34bc4e14204e4a..995fded45cfafca1ea894ffad8722e5ea5dc1590 100644 (file)
@@ -17,6 +17,7 @@
 // PETScWrappers: document bug when using GrowingVectorMemory
 // at the end of a run.
 
+#include <deal.II/base/mpi.h>
 #include <deal.II/base/utilities.h>
 
 #include <deal.II/lac/petsc_block_vector.h>
@@ -25,7 +26,6 @@
 
 #include "../tests.h"
 
-// #include <mpi.h>
 
 template <class v>
 void
index 51361faa06d8aa29858f237961152489af5e5838..7232d6bb89a2a0c20738dce969f98716d3ee26c4 100644 (file)
@@ -40,7 +40,7 @@
 #include <deal.II/lac/vector.h>
 
 #include "../tests.h"
-// #include <mpi.h>
+
 
 template <int dim>
 void
index 83d584a13ec0fa0795ff264b6e9d93557c079c5c..7e6ac6f04a9c2f814b3e3f4c4469c57ea01e5e0d 100644 (file)
 
 // check if mpi is working
 
+#include <deal.II/base/mpi.h>
 #include <deal.II/base/utilities.h>
 
 #include "../tests.h"
 
-// #include <mpi.h>
-
 
 void
 test_mpi()
index bf590ce3a0a5a73d868c841f577321bfd4c28ad0..243c3fd2b062b35fd9981d71d5334bcdb13cb431 100644 (file)
 // Trilinos bug 5609 is indeed fixed, see
 //   http://software.sandia.gov/bugzilla/show_bug.cgi?id=5609
 
+#include <deal.II/base/mpi.h>
 
 #include <Epetra_FEVector.h>
 #include <Epetra_Map.h>
 #include <Epetra_MpiComm.h>
-#include <mpi.h>
 
 #include <iostream>
 
index 473cbc29742e2df39a8bfb2489e3271443a254bc..7fe72054bba2bd517e0684cd30541ccc61d87352 100644 (file)
 // test that MPI is working correctly. Note that this test expects to
 // be executed with exactly two threads.
 
+#include <deal.II/base/mpi.h>
+
 #include <deal.II/grid/tria.h>
 
-#include <mpi.h>
 #include <sched.h>
 
 #include <iostream>
index 35017bea1c68c3ef13fe14632e9858b694bed69d..2f1c16df1674fcd872e14e1d1aa077be868ed125 100644 (file)
@@ -16,6 +16,7 @@
 // are created by calling NVectorView on one of the internal vector types.
 
 #include <deal.II/base/logstream.h>
+#include <deal.II/base/mpi.h>
 
 #include <deal.II/lac/block_vector.h>
 #include <deal.II/lac/la_parallel_block_vector.h>
 #include <deal.II/sundials/n_vector.h>
 #include <deal.II/sundials/n_vector.templates.h>
 
-#ifdef DEAL_II_WITH_MPI
-#  include <mpi.h>
-#endif
-
 #include "../tests.h"
 
 using namespace SUNDIALS::internal;
index 2c1b1ba79edd06bb364a12ee0e6358c034b608a5..98358e7831374fe716140ccde5f56e5480040956 100644 (file)
@@ -15,6 +15,7 @@
 // Test that dof renumbering is also reflected in TrilinosWrappers::SparseMatrix
 
 #include <deal.II/base/conditional_ostream.h>
+#include <deal.II/base/mpi.h>
 #include <deal.II/base/utilities.h>
 
 #include <deal.II/distributed/shared_tria.h>
@@ -38,8 +39,6 @@
 #include <deal.II/numerics/matrix_tools.h>
 #include <deal.II/numerics/vector_tools.h>
 
-#include <mpi.h>
-
 #include <iostream>
 #include <vector>
 

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.