]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move an #include statement. 18216/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 10 Mar 2025 16:52:35 +0000 (10:52 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 10 Mar 2025 16:52:35 +0000 (10:52 -0600)
include/deal.II/base/exception_macros.h
include/deal.II/base/exceptions.h

index 6a6bef4810d90927cd7401bc4ad34648b7cc77c8..b0eb469fbd650fcfb8b59a6e45384d0d4c1b7d98 100644 (file)
 
 #include <deal.II/base/config.h>
 
-// The #defines of the Assert* macros below reference functions and
-// classes that are declared in exceptions.h. This is ok -- places
-// that use the Assert macro (for example) simply have to #include
-// <deal.II/base/exceptions.h> or, in the case of C++20 modules, use
-// the fact that we let exceptions.h export this stuff into the dealii
-// module. But the exception machinery also references Kokkos
-// functions, which exceptions.h cannot export into the module. The
-// places that use exceptions must know about these functions, and to
-// avoid them all having to include Kokkos headers, we have to do it
-// here:
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
-#include <Kokkos_Macros.hpp>
-#if KOKKOS_VERSION >= 40200
-#  include <Kokkos_Abort.hpp>
-#else
-#  include <Kokkos_Core.hpp>
-#endif
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
-
-
 
 /**********************************************************************
  * Preprocessor definitions in support of declaring exception classes.
index daad69f2296ad230c53871ffe6765beba1b855b2..373ae8849cf68d92162521303f89670416a7464c 100644 (file)
 #include <deal.II/base/exception_macros.h>
 #include <deal.II/base/numbers.h>
 
+// The exception machinery (including the macros defined in
+// exception_macros.h) references Kokkos functions. The places that
+// use exceptions must know about these functions, and to avoid them
+// all having to include Kokkos headers, we have to do it here:
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
+#include <Kokkos_Macros.hpp>
+#if KOKKOS_VERSION >= 40200
+#  include <Kokkos_Abort.hpp>
+#else
+#  include <Kokkos_Core.hpp>
+#endif
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
+
+
 #include <exception>
 #include <ostream>
 #include <string>

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.