From c92d7d4e29577c754c67d89177ee169319b2c62f Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Fri, 19 Jul 2024 19:07:25 +0200 Subject: [PATCH] Fix Ifpack2 preconditioner type --- include/deal.II/lac/trilinos_tpetra_types.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/deal.II/lac/trilinos_tpetra_types.h b/include/deal.II/lac/trilinos_tpetra_types.h index bf38dc7784..4cd49089a9 100644 --- a/include/deal.II/lac/trilinos_tpetra_types.h +++ b/include/deal.II/lac/trilinos_tpetra_types.h @@ -27,7 +27,9 @@ // Forward declarations # ifndef DOXYGEN -# include +# ifdef DEAL_II_TRILINOS_WITH_IFPACK2 +# include +# endif # include # include # include @@ -174,12 +176,15 @@ namespace LinearAlgebra typename MemorySpace::kokkos_space::execution_space, Kokkos::MemoryUnmanaged>; + +# ifdef DEAL_II_TRILINOS_WITH_IFPACK2 /** * Type for a Trilinos preconditioner from the Ifpack2 package. */ template using Ifpack2PreconType = Ifpack2::Preconditioner>; +# endif } // namespace TpetraTypes } // namespace TpetraWrappers -- 2.39.5