From: Wolfgang Bangerth Date: Thu, 29 May 2025 19:37:08 +0000 (-0600) Subject: Move some forward declarations. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7faf61d6b07404b0c1b20c09e7bc1cebc4713450;p=dealii.git Move some forward declarations. --- diff --git a/include/deal.II/differentiation/ad/sacado_number_types.h b/include/deal.II/differentiation/ad/sacado_number_types.h index d2dd4687c8..696b8f7f8d 100644 --- a/include/deal.II/differentiation/ad/sacado_number_types.h +++ b/include/deal.II/differentiation/ad/sacado_number_types.h @@ -17,6 +17,23 @@ #include +#include +#include + +#include +#include + +#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 +# include +# include + +# include +#endif + #include @@ -60,29 +77,9 @@ namespace Differentiation } // namespace Differentiation -DEAL_II_NAMESPACE_CLOSE - - #ifdef DEAL_II_TRILINOS_WITH_SACADO -# include -# include - -# include -# include - -// 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 -# include -# include - -# include - -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