]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move 'using MPI_Comm = int' et al to a separate header. 14185/head
authorDavid Wells <drwells@email.unc.edu>
Fri, 12 Aug 2022 12:24:36 +0000 (08:24 -0400)
committerDavid Wells <drwells@email.unc.edu>
Fri, 12 Aug 2022 19:19:15 +0000 (15:19 -0400)
Most of the time we only need declarations of MPI classes (like MPI_Comm) and
not our own utility functions in headers. To this end, we can just put mpi.h (or
our equivalent stub declarations) in a separate header and use that most of the
time.

38 files changed:
include/deal.II/base/communication_pattern_base.h
include/deal.II/base/data_out_base.h
include/deal.II/base/index_set.h
include/deal.II/base/mpi.h
include/deal.II/base/mpi_compute_index_owner_internal.h
include/deal.II/base/mpi_consensus_algorithms.h
include/deal.II/base/mpi_noncontiguous_partitioner.h
include/deal.II/base/mpi_noncontiguous_partitioner.templates.h
include/deal.II/base/mpi_remote_point_evaluation.h
include/deal.II/base/mpi_stub.h [new file with mode: 0644]
include/deal.II/base/partitioner.h
include/deal.II/base/partitioner.templates.h
include/deal.II/distributed/fully_distributed_tria.h
include/deal.II/distributed/shared_tria.h
include/deal.II/distributed/tria.h
include/deal.II/distributed/tria_base.h
include/deal.II/dofs/number_cache.h
include/deal.II/grid/tria_description.h
include/deal.II/lac/la_parallel_vector.h
include/deal.II/lac/la_parallel_vector.templates.h
include/deal.II/lac/read_write_vector.h
include/deal.II/lac/scalapack.h
include/deal.II/lac/sparse_matrix.h
include/deal.II/lac/sparsity_tools.h
include/deal.II/lac/trilinos_epetra_vector.h
include/deal.II/lac/trilinos_sparse_matrix.h
include/deal.II/lac/trilinos_sparsity_pattern.h
include/deal.II/lac/trilinos_tpetra_vector.h
include/deal.II/lac/trilinos_vector.h
include/deal.II/matrix_free/cuda_matrix_free.h
include/deal.II/matrix_free/task_info.h
include/deal.II/matrix_free/vector_data_exchange.h
include/deal.II/particles/particle_handler.h
include/deal.II/sundials/arkode.h
include/deal.II/sundials/ida.h
include/deal.II/sundials/kinsol.h
source/grid/grid_tools_cache.cc
source/lac/trilinos_epetra_vector.cc

index 02c626ce0cb524673bb0e438d519dbb022a1d728..94c27e16a199a798f69023116b98db8f8e2c9f48 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <deal.II/base/config.h>
 
-#include <deal.II/base/mpi.h>
+#include <deal.II/base/mpi_stub.h>
 
 DEAL_II_NAMESPACE_OPEN
 
index 50110300152033fd139dbc79d6f1c05c5d25d0a8..1eee1889894aa7f728789f36f240c575f9b79545 100644 (file)
@@ -20,7 +20,7 @@
 #include <deal.II/base/config.h>
 
 #include <deal.II/base/geometry_info.h>
-#include <deal.II/base/mpi.h>
+#include <deal.II/base/mpi_stub.h>
 #include <deal.II/base/point.h>
 #include <deal.II/base/table.h>
 
index 9afd33f187ad09b22e238bf268b062333469215d..f4d09b1dffdc95b7fb12e483f576fd62980c232c 100644 (file)
@@ -19,6 +19,7 @@
 #include <deal.II/base/config.h>
 
 #include <deal.II/base/exceptions.h>
+#include <deal.II/base/mpi_stub.h>
 #include <deal.II/base/mutex.h>
 #include <deal.II/base/utilities.h>
 
@@ -37,15 +38,6 @@ DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 #  endif
 #endif
 
-#if defined(DEAL_II_WITH_MPI) || defined(DEAL_II_WITH_PETSC)
-#  include <mpi.h>
-#else
-using MPI_Comm = int;
-#  ifndef MPI_COMM_WORLD
-#    define MPI_COMM_WORLD 0
-#  endif
-#endif
-
 DEAL_II_NAMESPACE_OPEN
 
 /**
index f233f0a783c8d57f4ff314e6bd09b471960b4c14..ded9b270260bb44ed7dc024ec8790850f749547c 100644 (file)
@@ -19,6 +19,7 @@
 #include <deal.II/base/config.h>
 
 #include <deal.II/base/array_view.h>
+#include <deal.II/base/mpi_stub.h>
 #include <deal.II/base/mpi_tags.h>
 #include <deal.II/base/numbers.h>
 #include <deal.II/base/template_constraints.h>
 #include <set>
 #include <vector>
 
-#if !defined(DEAL_II_WITH_MPI) && !defined(DEAL_II_WITH_PETSC)
-// without MPI, we would still like to use
-// some constructs with MPI data
-// types. Therefore, create some dummies
-using MPI_Comm     = int;
-using MPI_Request  = int;
-using MPI_Datatype = int;
-using MPI_Op       = int;
-#  ifndef MPI_COMM_WORLD
-#    define MPI_COMM_WORLD 0
-#  endif
-#  ifndef MPI_COMM_SELF
-#    define MPI_COMM_SELF 0
-#  endif
-#  ifndef MPI_COMM_NULL
-#    define MPI_COMM_NULL 0
-#  endif
-#  ifndef MPI_REQUEST_NULL
-#    define MPI_REQUEST_NULL 0
-#  endif
-#  ifndef MPI_MIN
-#    define MPI_MIN 0
-#  endif
-#  ifndef MPI_MAX
-#    define MPI_MAX 0
-#  endif
-#  ifndef MPI_SUM
-#    define MPI_SUM 0
-#  endif
-#  ifndef MPI_LOR
-#    define MPI_LOR 0
-#  endif
-#endif
-
 
 
 /**
index 195b19e15591e8e38fa5ad5c095a46b4c2fd1a5f..ed4d141909090825241068707d864957e524cfa4 100644 (file)
@@ -18,8 +18,8 @@
 
 #include <deal.II/base/config.h>
 
-#include <deal.II/base/mpi.h>
 #include <deal.II/base/mpi_consensus_algorithms.h>
+#include <deal.II/base/mpi_stub.h>
 
 DEAL_II_NAMESPACE_OPEN
 
index ce6c84a42bceb4d3abb6f202557e00a339ab99a5..373dbbd28e69c9d0a0b78e07052806b9664ef855 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <deal.II/base/mpi.h>
 #include <deal.II/base/mpi.templates.h>
+#include <deal.II/base/mpi_tags.h>
 
 DEAL_II_NAMESPACE_OPEN
 
index 28c5ecdc0837ad1e812aac461a386b22e05c2dc3..776436167f6fe3b3eb473208c94be1b8c1215808 100644 (file)
@@ -19,9 +19,8 @@
 #include <deal.II/base/config.h>
 
 #include <deal.II/base/communication_pattern_base.h>
-#include <deal.II/base/mpi.h>
 #include <deal.II/base/mpi_compute_index_owner_internal.h>
-#include <deal.II/base/mpi_tags.h>
+#include <deal.II/base/mpi_stub.h>
 
 #include <deal.II/lac/vector_space_vector.h>
 
index 62f9079dbdce38b84e2d06844dba1a53e5945e81..0c033164366e189b6c7a1b2d2fddaf7d1bedefcb 100644 (file)
@@ -22,6 +22,7 @@
 #include <deal.II/base/mpi.templates.h>
 #include <deal.II/base/mpi_compute_index_owner_internal.h>
 #include <deal.II/base/mpi_noncontiguous_partitioner.h>
+#include <deal.II/base/mpi_tags.h>
 
 #include <deal.II/lac/vector_space_vector.h>
 
index 01d9c73267a6734a19a224aec6d0355db35008e7..7f3c1219780bc9839d97be07de8030ed71547bf5 100644 (file)
@@ -18,6 +18,9 @@
 
 #include <deal.II/base/config.h>
 
+#include <deal.II/base/mpi.h>
+#include <deal.II/base/mpi_tags.h>
+
 #include <deal.II/dofs/dof_handler.h>
 
 DEAL_II_NAMESPACE_OPEN
diff --git a/include/deal.II/base/mpi_stub.h b/include/deal.II/base/mpi_stub.h
new file mode 100644 (file)
index 0000000..bcfe0c0
--- /dev/null
@@ -0,0 +1,63 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2011 - 2022 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE.md at
+// the top level directory of deal.II.
+//
+// ---------------------------------------------------------------------
+
+#ifndef dealii_mpi_stub_h
+#define dealii_mpi_stub_h
+
+#include <deal.II/base/config.h>
+
+// If we have mpi.h then include it. Otherwise, define some common MPI data
+// types and global constants for the no-MPI case. This way we can still use,
+// e.g., MPI_Comm in the API.
+
+#if defined(DEAL_II_WITH_MPI) || defined(DEAL_II_WITH_PETSC)
+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 data
+// types. Therefore, create some dummies
+using MPI_Comm     = int;
+using MPI_Request  = int;
+using MPI_Datatype = int;
+using MPI_Op       = int;
+#  ifndef MPI_COMM_WORLD
+#    define MPI_COMM_WORLD 0
+#  endif
+#  ifndef MPI_COMM_SELF
+#    define MPI_COMM_SELF 0
+#  endif
+#  ifndef MPI_COMM_NULL
+#    define MPI_COMM_NULL 0
+#  endif
+#  ifndef MPI_REQUEST_NULL
+#    define MPI_REQUEST_NULL 0
+#  endif
+#  ifndef MPI_MIN
+#    define MPI_MIN 0
+#  endif
+#  ifndef MPI_MAX
+#    define MPI_MAX 0
+#  endif
+#  ifndef MPI_SUM
+#    define MPI_SUM 0
+#  endif
+#  ifndef MPI_LOR
+#    define MPI_LOR 0
+#  endif
+#endif
+
+#endif
index 8664d39236347dca2c84bc116f11c23ec2efc989..c1ec508ff771486f98b257f0d75450a97dad196e 100644 (file)
 #include <deal.II/base/communication_pattern_base.h>
 #include <deal.II/base/index_set.h>
 #include <deal.II/base/memory_space.h>
-#include <deal.II/base/mpi.h>
+#include <deal.II/base/mpi_stub.h>
 #include <deal.II/base/types.h>
 
 #include <deal.II/lac/vector_operation.h>
 
 #include <limits>
-
+#include <memory>
 
 DEAL_II_NAMESPACE_OPEN
 
index 67097adb6107e2ce120615db16da604d3a6a753c..b933700dd180c26d061ee944f5086b7693a5c674 100644 (file)
@@ -19,6 +19,7 @@
 #include <deal.II/base/config.h>
 
 #include <deal.II/base/cuda_size.h>
+#include <deal.II/base/mpi_tags.h>
 #include <deal.II/base/partitioner.h>
 
 #include <deal.II/lac/cuda_kernels.templates.h>
index cebde819aacadc02ab26fa2c49f70ea378bd8e34..20f7de6238260abcbf74e961ccb6198745f0c46d 100644 (file)
 
 #include <deal.II/base/config.h>
 
+#include <deal.II/base/mpi_stub.h>
+
 #include <deal.II/distributed/repartitioning_policy_tools.h>
 #include <deal.II/distributed/tria_base.h>
 
 #include <vector>
 
-#ifdef DEAL_II_WITH_MPI
-#  include <mpi.h>
-#endif
-
 DEAL_II_NAMESPACE_OPEN
 
 // Forward declarations
index f9d56f08398d8806c2485a3443f086e75d94e943..781b37c62d7ba95af97092d07706d0994bdfa780 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <deal.II/base/config.h>
 
+#include <deal.II/base/mpi_stub.h>
 #include <deal.II/base/smartpointer.h>
 #include <deal.II/base/subscriptor.h>
 #include <deal.II/base/template_constraints.h>
 #include <utility>
 #include <vector>
 
-#ifdef DEAL_II_WITH_MPI
-#  include <mpi.h>
-#endif
-
-
 DEAL_II_NAMESPACE_OPEN
 
 namespace parallel
index 2d979acd2cf850cb841a3f2eedbacab2f51e62f4..ccb7e18a2f78876e57149f29568c0f7bc94645c0 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <deal.II/base/config.h>
 
+#include <deal.II/base/mpi_stub.h>
 #include <deal.II/base/smartpointer.h>
 #include <deal.II/base/subscriptor.h>
 #include <deal.II/base/template_constraints.h>
 #include <utility>
 #include <vector>
 
-#ifdef DEAL_II_WITH_MPI
-#  include <mpi.h>
-#endif
-
 #ifdef DEAL_II_WITH_P4EST
 #  include <p4est.h>
 #  include <p4est_connectivity.h>
index c9c40be3024920c5d3ad26e47d8e136a6a27537e..011c2d32298ec44333a95204f466ab01714161cc 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <deal.II/base/config.h>
 
-#include <deal.II/base/mpi.h>
+#include <deal.II/base/mpi_stub.h>
 #include <deal.II/base/partitioner.h>
 #include <deal.II/base/smartpointer.h>
 #include <deal.II/base/subscriptor.h>
index 7624072a08290cc3c7e55f0fdb181ac5c2efa334..8bd8fc4604b79320c4dfb3c66cf02f9bee4fb633 100644 (file)
@@ -19,7 +19,7 @@
 #include <deal.II/base/config.h>
 
 #include <deal.II/base/index_set.h>
-#include <deal.II/base/mpi.h>
+#include <deal.II/base/mpi_stub.h>
 
 #include <vector>
 
index b2c26cf4c3b1b6bf0e936cf1041b170892c164ad..888353316bfcf9f7f40115e13a5ba128146d7548 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <deal.II/base/config.h>
 
-#include <deal.II/base/mpi.h>
+#include <deal.II/base/mpi_stub.h>
 
 #include <deal.II/grid/cell_id.h>
 #include <deal.II/grid/reference_cell.h>
index 137ff816e0a36e921b64d050aa7f82fa2d07197e..c8f09024f2ca9984e1a4813e33a31ec792ed920f 100644 (file)
@@ -21,7 +21,7 @@
 #include <deal.II/base/communication_pattern_base.h>
 #include <deal.II/base/memory_space.h>
 #include <deal.II/base/memory_space_data.h>
-#include <deal.II/base/mpi.h>
+#include <deal.II/base/mpi_stub.h>
 #include <deal.II/base/numbers.h>
 #include <deal.II/base/parallel.h>
 #include <deal.II/base/partitioner.h>
index 39d1d1c08f11f05e499b8b11ce1ff47f0c83db2a..f6bd7941ca145d7590ee42d2fb91008b2c9f802d 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <deal.II/base/cuda.h>
 #include <deal.II/base/cuda_size.h>
+#include <deal.II/base/mpi.h>
 
 #include <deal.II/lac/exceptions.h>
 #include <deal.II/lac/la_parallel_vector.h>
index 9a915f0f5bb11a66a22e0450abd8c58d583527a4..4af5b1c6b27dbb7698eb3d548b3836a6ae579380 100644 (file)
@@ -21,7 +21,7 @@
 #include <deal.II/base/communication_pattern_base.h>
 #include <deal.II/base/index_set.h>
 #include <deal.II/base/memory_consumption.h>
-#include <deal.II/base/mpi.h>
+#include <deal.II/base/mpi_stub.h>
 #include <deal.II/base/parallel.h>
 #include <deal.II/base/subscriptor.h>
 #include <deal.II/base/template_constraints.h>
@@ -47,6 +47,9 @@ DEAL_II_NAMESPACE_OPEN
 
 // Forward declarations
 #ifndef DOXYGEN
+template <typename>
+class Vector;
+
 namespace LinearAlgebra
 {
   template <typename>
index da65f8c1830636f2d29e5f5a72ade29b01873acd..16fad15087c346cd3f764dc42bc359def0befc31 100644 (file)
@@ -22,6 +22,7 @@
 
 #  include <deal.II/base/exceptions.h>
 #  include <deal.II/base/mpi.h>
+#  include <deal.II/base/mpi_stub.h>
 #  include <deal.II/base/mutex.h>
 #  include <deal.II/base/process_grid.h>
 
@@ -29,8 +30,6 @@
 #  include <deal.II/lac/lapack_full_matrix.h>
 #  include <deal.II/lac/lapack_support.h>
 
-#  include <mpi.h>
-
 #  include <memory>
 
 DEAL_II_NAMESPACE_OPEN
index f3c71bd7ff798f6673c4b7d245752e970ee1dce8..a27f2bb07f6afd1b3b48c08658b287ea81ccffba 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <deal.II/base/config.h>
 
+#include <deal.II/base/mpi_stub.h>
 #include <deal.II/base/smartpointer.h>
 #include <deal.II/base/subscriptor.h>
 
@@ -25,9 +26,6 @@
 #include <deal.II/lac/identity_matrix.h>
 #include <deal.II/lac/sparsity_pattern.h>
 #include <deal.II/lac/vector_operation.h>
-#ifdef DEAL_II_WITH_MPI
-#  include <mpi.h>
-#endif
 
 #include <iterator>
 #include <memory>
index cfcf74bc044646255cf116fdc223816b80d0cac3..454654e6595e7cdec9118fdf5a1fdc16e10defd2 100644 (file)
@@ -20,6 +20,8 @@
 #include <deal.II/base/config.h>
 
 #include <deal.II/base/exceptions.h>
+#include <deal.II/base/index_set.h>
+#include <deal.II/base/mpi_stub.h>
 
 #include <deal.II/lac/block_sparsity_pattern.h>
 #include <deal.II/lac/dynamic_sparsity_pattern.h>
 #include <memory>
 #include <vector>
 
-#ifdef DEAL_II_WITH_MPI
-#  include <deal.II/base/index_set.h>
-
-#  include <mpi.h>
-#endif
-
 DEAL_II_NAMESPACE_OPEN
 
 
index fd717964c690566e6c0ddea4689b1ab9ccef1446..10abb5ce7bb715e4812f765e2a7ae77e59506635 100644 (file)
@@ -22,6 +22,7 @@
 #ifdef DEAL_II_WITH_TRILINOS
 
 #  include <deal.II/base/index_set.h>
+#  include <deal.II/base/mpi_stub.h>
 #  include <deal.II/base/subscriptor.h>
 
 #  include <deal.II/lac/trilinos_epetra_communication_pattern.h>
@@ -30,7 +31,6 @@
 #  include <deal.II/lac/vector_type_traits.h>
 
 #  include <Epetra_FEVector.h>
-#  include <mpi.h>
 
 #  include <memory>
 
index 3f8c6f669e9ce6f7fa3225a81b1e67dec3e6347b..51ca742d5d7d74964e99f4e35f71c6c75f466f12 100644 (file)
@@ -22,6 +22,7 @@
 #  ifdef DEAL_II_WITH_TRILINOS
 
 #    include <deal.II/base/index_set.h>
+#    include <deal.II/base/mpi_stub.h>
 #    include <deal.II/base/subscriptor.h>
 
 #    include <deal.II/lac/exceptions.h>
@@ -41,7 +42,6 @@
 #    include <Epetra_MpiComm.h>
 #    include <Epetra_MultiVector.h>
 #    include <Epetra_Operator.h>
-#    include <mpi.h>
 
 #    include <cmath>
 #    include <iterator>
index aa417bd35ecd16ffdb75d5828b5a2fc8ab605a34..74c8ea1ea80a89cdd3376ed356d285c19edc5668 100644 (file)
@@ -22,6 +22,7 @@
 #  ifdef DEAL_II_WITH_TRILINOS
 
 #    include <deal.II/base/index_set.h>
+#    include <deal.II/base/mpi_stub.h>
 #    include <deal.II/base/subscriptor.h>
 
 #    include <deal.II/lac/exceptions.h>
@@ -29,7 +30,6 @@
 #    include <Epetra_FECrsGraph.h>
 #    include <Epetra_Map.h>
 #    include <Epetra_MpiComm.h>
-#    include <mpi.h>
 
 #    include <cmath>
 #    include <memory>
index 8e3a56b8b1f0dd1729ff40a6be5d0c42c24ac1a0..26c1f1675a1c072342a45b72977cf1db3513c52c 100644 (file)
@@ -22,6 +22,7 @@
 #ifdef DEAL_II_TRILINOS_WITH_TPETRA
 
 #  include <deal.II/base/index_set.h>
+#  include <deal.II/base/mpi_stub.h>
 #  include <deal.II/base/subscriptor.h>
 
 #  include <deal.II/lac/trilinos_tpetra_communication_pattern.h>
@@ -34,7 +35,6 @@
 #  include <Tpetra_Core.hpp>
 #  include <Tpetra_Vector.hpp>
 #  include <Tpetra_Version.hpp>
-#  include <mpi.h>
 
 #  include <memory>
 
index cd2f45619cbe86bd4f54ce46242be0744860673f..2161e19f2b756f4efd36feb4e3f974ba0af94eac 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifdef DEAL_II_WITH_TRILINOS
 #  include <deal.II/base/index_set.h>
-#  include <deal.II/base/mpi.h>
+#  include <deal.II/base/mpi_stub.h>
 #  include <deal.II/base/subscriptor.h>
 #  include <deal.II/base/utilities.h>
 
@@ -35,7 +35,6 @@
 #  include <Epetra_LocalMap.h>
 #  include <Epetra_Map.h>
 #  include <Epetra_MpiComm.h>
-#  include <mpi.h>
 
 #  include <memory>
 #  include <utility>
index b0a36ba45bed564c8320b19168b83ffbea006fae..24cbc64f3ffb9ea6b6c4aa83d44694a5a07787e8 100644 (file)
@@ -22,7 +22,8 @@
 #ifdef DEAL_II_COMPILER_CUDA_AWARE
 
 #  include <deal.II/base/cuda_size.h>
-#  include <deal.II/base/mpi.h>
+#  include <deal.II/base/mpi_stub.h>
+#  include <deal.II/base/partitioner.h>
 #  include <deal.II/base/quadrature.h>
 #  include <deal.II/base/tensor.h>
 
index 3c66a98499a0688015047eab7f088882bbf9afb2..3f89b4a3657d874d10783bec9ae479cdc8e6b657 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <deal.II/base/exceptions.h>
 #include <deal.II/base/memory_consumption.h>
-#include <deal.II/base/mpi.h>
+#include <deal.II/base/mpi_stub.h>
 #include <deal.II/base/tensor.h>
 #include <deal.II/base/utilities.h>
 #include <deal.II/base/vectorization.h>
index 6a2e349740e5b9cbcf501da19f590601e316d943..a6f4abd3205846c56a9013c51fc97498578d72b1 100644 (file)
 #include <deal.II/base/config.h>
 
 #include <deal.II/base/array_view.h>
-#include <deal.II/base/mpi.h>
+#include <deal.II/base/mpi_stub.h>
+#include <deal.II/base/partitioner.h>
 
 #include <deal.II/lac/vector_operation.h>
 
+#include <memory>
 
 DEAL_II_NAMESPACE_OPEN
 
index f09497ab9a9752d57722c409fcb28fa0bcc57d0a..5fa175b03194be63938fa19921cbb7691e74d710 100644 (file)
@@ -21,7 +21,6 @@
 #include <deal.II/base/array_view.h>
 #include <deal.II/base/bounding_box.h>
 #include <deal.II/base/function.h>
-#include <deal.II/base/mpi.h>
 #include <deal.II/base/smartpointer.h>
 #include <deal.II/base/subscriptor.h>
 
index b001106d8c79622079f64f37c739265e871528c0..dd1cfa0ca05d8fd590b7c5100af969f2fd561dcf 100644 (file)
 
 #include <deal.II/base/config.h>
 
-#include <deal.II/base/mpi.h>
 
 #ifdef DEAL_II_WITH_SUNDIALS
 
 #  include <deal.II/base/conditional_ostream.h>
 #  include <deal.II/base/exceptions.h>
 #  include <deal.II/base/logstream.h>
+#  include <deal.II/base/mpi_stub.h>
 #  include <deal.II/base/parameter_handler.h>
+
 #  ifdef DEAL_II_WITH_PETSC
 #    include <deal.II/lac/petsc_block_vector.h>
 #    include <deal.II/lac/petsc_vector.h>
index a4df31be6986426cedab8fc2101af227239c29e3..81f6d0d87a3fc46c994b3be9064af39147514549 100644 (file)
 
 #include <deal.II/base/config.h>
 
-#include <deal.II/base/mpi.h>
 #ifdef DEAL_II_WITH_SUNDIALS
 #  include <deal.II/base/conditional_ostream.h>
 #  include <deal.II/base/exceptions.h>
 #  include <deal.II/base/logstream.h>
+#  include <deal.II/base/mpi_stub.h>
 #  include <deal.II/base/parameter_handler.h>
+
 #  ifdef DEAL_II_WITH_PETSC
 #    include <deal.II/lac/petsc_block_vector.h>
 #    include <deal.II/lac/petsc_vector.h>
index 98b2bab8e9ab586ec2c4d1d7716a2774ab1f4492..943ffc0c3573e8ee7d944f63a2f4c2466da7d7da 100644 (file)
@@ -25,7 +25,7 @@
 #  include <deal.II/base/conditional_ostream.h>
 #  include <deal.II/base/exceptions.h>
 #  include <deal.II/base/logstream.h>
-#  include <deal.II/base/mpi.h>
+#  include <deal.II/base/mpi_stub.h>
 #  include <deal.II/base/parameter_handler.h>
 
 #  include <deal.II/lac/vector.h>
index 2227b0388a02efb4242e9b78f8030148350c27bb..76bc5507c5a1635e0fec69d928db8c0004260d70 100644 (file)
@@ -14,7 +14,7 @@
 // ---------------------------------------------------------------------
 
 #include <deal.II/base/bounding_box.h>
-#include <deal.II/base/mpi.h>
+#include <deal.II/base/mpi_stub.h>
 
 #include <deal.II/grid/filtered_iterator.h>
 #include <deal.II/grid/grid_tools.h>
index 7f2c7554348e63bea86ca46f62a704f5735182b4..eaf4fb047a105324fa215842c91a4195109223a3 100644 (file)
@@ -18,6 +18,7 @@
 #ifdef DEAL_II_WITH_TRILINOS
 
 #  include <deal.II/base/index_set.h>
+#  include <deal.II/base/mpi.h>
 
 #  include <deal.II/lac/read_write_vector.h>
 

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.