]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move some forward declarations. 18436/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 29 May 2025 19:37:08 +0000 (13:37 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 29 May 2025 19:37:16 +0000 (13:37 -0600)
include/deal.II/differentiation/ad/sacado_number_types.h

index d2dd4687c865793c066292249539fdc17c419833..696b8f7f8d24686b5d85b6afaaa695ddc5746334 100644 (file)
 
 #include <deal.II/base/config.h>
 
+#include <deal.II/base/exceptions.h>
+#include <deal.II/base/numbers.h>
+
+#include <deal.II/differentiation/ad/ad_number_traits.h>
+#include <deal.II/differentiation/ad/ad_number_types.h>
+
+#ifdef DEAL_II_TRILINOS_WITH_SACADO
+// It appears that some versions of Trilinos do not directly or indirectly
+// include all the headers for all forward and reverse Sacado AD types
+// in Sacado.hpp, so we also directly include these here as a precaution:
+#  include <Sacado.hpp>
+#  include <Sacado_Fad_DFad.hpp>
+#  include <Sacado_trad.hpp>
+
+#  include <complex>
+#endif
+
 #include <type_traits>
 
 
@@ -60,29 +77,9 @@ namespace Differentiation
 } // namespace Differentiation
 
 
-DEAL_II_NAMESPACE_CLOSE
-
-
 
 #ifdef DEAL_II_TRILINOS_WITH_SACADO
 
-#  include <deal.II/base/exceptions.h>
-#  include <deal.II/base/numbers.h>
-
-#  include <deal.II/differentiation/ad/ad_number_traits.h>
-#  include <deal.II/differentiation/ad/ad_number_types.h>
-
-// It appears that some versions of Trilinos do not directly or indirectly
-// include all the headers for all forward and reverse Sacado AD types
-// in Sacado.hpp, so we also directly include these here as a precaution:
-#  include <Sacado.hpp>
-#  include <Sacado_Fad_DFad.hpp>
-#  include <Sacado_trad.hpp>
-
-#  include <complex>
-
-DEAL_II_NAMESPACE_OPEN
-
 
 namespace Differentiation
 {
@@ -901,10 +898,9 @@ namespace Differentiation
 #  endif // DOXYGEN
 
 
-
-DEAL_II_NAMESPACE_CLOSE
+#endif // DEAL_II_TRILINOS_WITH_SACADO
 
 
-#endif // DEAL_II_TRILINOS_WITH_SACADO
+DEAL_II_NAMESPACE_CLOSE
 
 #endif

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.