From: Wolfgang Bangerth Date: Tue, 11 Mar 2025 03:39:52 +0000 (-0600) Subject: Don't include mpi.h directly. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5776aa79ef1448d42755759b4a84adb4211b4c3;p=dealii.git Don't include mpi.h directly. --- diff --git a/tests/base/mpi_exceptions.cc b/tests/base/mpi_exceptions.cc index 13d50a00b1..e36c88b96d 100644 --- a/tests/base/mpi_exceptions.cc +++ b/tests/base/mpi_exceptions.cc @@ -17,8 +17,7 @@ // exception messages to the screen. #include - -#include +#include #include diff --git a/tests/mpi/petsc_01.cc b/tests/mpi/petsc_01.cc index 394ff9a20a..0e898d756f 100644 --- a/tests/mpi/petsc_01.cc +++ b/tests/mpi/petsc_01.cc @@ -19,6 +19,7 @@ // rows that are emptied with clear_rows(). This results in errors // when reusing the matrix later. +#include #include #include @@ -26,8 +27,6 @@ #include "../tests.h" -// #include - void test() diff --git a/tests/mpi/petsc_02.cc b/tests/mpi/petsc_02.cc index a8887ab8b5..32076ff512 100644 --- a/tests/mpi/petsc_02.cc +++ b/tests/mpi/petsc_02.cc @@ -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 #include #include @@ -25,8 +26,6 @@ #include "../tests.h" -// #include - void test() diff --git a/tests/mpi/petsc_03.cc b/tests/mpi/petsc_03.cc index 645cc1bca4..995fded45c 100644 --- a/tests/mpi/petsc_03.cc +++ b/tests/mpi/petsc_03.cc @@ -17,6 +17,7 @@ // PETScWrappers: document bug when using GrowingVectorMemory // at the end of a run. +#include #include #include @@ -25,7 +26,6 @@ #include "../tests.h" -// #include template void diff --git a/tests/mpi/refine_and_coarsen_fixed_number_06.cc b/tests/mpi/refine_and_coarsen_fixed_number_06.cc index 51361faa06..7232d6bb89 100644 --- a/tests/mpi/refine_and_coarsen_fixed_number_06.cc +++ b/tests/mpi/refine_and_coarsen_fixed_number_06.cc @@ -40,7 +40,7 @@ #include #include "../tests.h" -// #include + template void diff --git a/tests/mpi/simple_mpi_01.cc b/tests/mpi/simple_mpi_01.cc index 83d584a13e..7e6ac6f04a 100644 --- a/tests/mpi/simple_mpi_01.cc +++ b/tests/mpi/simple_mpi_01.cc @@ -16,12 +16,11 @@ // check if mpi is working +#include #include #include "../tests.h" -// #include - void test_mpi() diff --git a/tests/mpi/trilinos_bug_5609.cc b/tests/mpi/trilinos_bug_5609.cc index bf590ce3a0..243c3fd2b0 100644 --- a/tests/mpi/trilinos_bug_5609.cc +++ b/tests/mpi/trilinos_bug_5609.cc @@ -18,11 +18,11 @@ // Trilinos bug 5609 is indeed fixed, see // http://software.sandia.gov/bugzilla/show_bug.cgi?id=5609 +#include #include #include #include -#include #include diff --git a/tests/quick_tests/mpi.cc b/tests/quick_tests/mpi.cc index 473cbc2974..7fe72054bb 100644 --- a/tests/quick_tests/mpi.cc +++ b/tests/quick_tests/mpi.cc @@ -15,9 +15,10 @@ // test that MPI is working correctly. Note that this test expects to // be executed with exactly two threads. +#include + #include -#include #include #include diff --git a/tests/sundials/n_vector.cc b/tests/sundials/n_vector.cc index 35017bea1c..2f1c16df16 100644 --- a/tests/sundials/n_vector.cc +++ b/tests/sundials/n_vector.cc @@ -16,6 +16,7 @@ // are created by calling NVectorView on one of the internal vector types. #include +#include #include #include @@ -26,10 +27,6 @@ #include #include -#ifdef DEAL_II_WITH_MPI -# include -#endif - #include "../tests.h" using namespace SUNDIALS::internal; diff --git a/tests/trilinos/renumbering_01.cc b/tests/trilinos/renumbering_01.cc index 2c1b1ba79e..98358e7831 100644 --- a/tests/trilinos/renumbering_01.cc +++ b/tests/trilinos/renumbering_01.cc @@ -15,6 +15,7 @@ // Test that dof renumbering is also reflected in TrilinosWrappers::SparseMatrix #include +#include #include #include @@ -38,8 +39,6 @@ #include #include -#include - #include #include