From: Martin Kronbichler Date: Fri, 19 Jul 2024 17:07:25 +0000 (+0200) Subject: Fix Ifpack2 preconditioner type X-Git-Tag: v9.6.0-rc1~65^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17311%2Fhead;p=dealii.git Fix Ifpack2 preconditioner type --- 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