]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove #includes from config.h.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 3 Feb 2025 19:42:32 +0000 (12:42 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 3 Feb 2025 20:19:51 +0000 (13:19 -0700)
include/deal.II/base/complex_overloads.h
include/deal.II/base/config.h.in
include/deal.II/base/discrete_time.h
include/deal.II/base/exceptions.h
include/deal.II/base/memory_consumption.h

index 52275384dc95617ea06a597745d86007feee2f4a..93d44ea5bd503e44231c895da393bade81d168bb 100644 (file)
 
 #include <deal.II/base/config.h>
 
+#include <complex>
+#include <type_traits>
+
+
 DEAL_II_NAMESPACE_OPEN
 
 #ifndef DOXYGEN
index 818a031d06f1c87b1edfa9df6c403d62d91a832a..448ece008d88fb79ef29006fc8b32e715bb264b5 100644 (file)
@@ -594,7 +594,7 @@ _Pragma("GCC diagnostic pop")
 
 /*
  * Some systems require including mpi.h before stdio.h which happens in
- * types.h
+ * base/types.h and perhaps other places. So just include it unconditionally.
  */
 #if defined(DEAL_II_WITH_MPI)
 DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
@@ -602,9 +602,6 @@ DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 #endif
 
-#include <deal.II/base/numbers.h>
-#include <deal.II/base/types.h>
-
 /*
  * Include the boost version header to do a quick version check in case, by
  * accident, we have configured with one version of boost but are compiling
index b7dc64c092c2957f7585f0479f041007b28102d7..d8c9367fdedbf503668cbe273a2c23cb7ccdb0e8 100644 (file)
@@ -17,6 +17,9 @@
 
 #include <deal.II/base/config.h>
 
+#include <cstddef>
+
+
 DEAL_II_NAMESPACE_OPEN
 
 /**
index e58f89fd964afc59d5ffd1b7b7b01f7114232d8d..1f333d96a5afd1d562a3ac3ca034812108680573 100644 (file)
@@ -17,6 +17,8 @@
 
 #include <deal.II/base/config.h>
 
+#include <deal.II/base/numbers.h>
+
 DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #include <Kokkos_Macros.hpp>
 #if KOKKOS_VERSION >= 40200
index ff0129d7170c0b07b1871cf548f7d06fd80b3689..8a4e58061c27ff00d22534a1a1f3aa9dbc1fa73b 100644 (file)
@@ -18,6 +18,8 @@
 
 #include <deal.II/base/config.h>
 
+#include <deal.II/base/vectorization.h>
+
 #include <array>
 #include <complex>
 #include <cstddef>

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.