]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix Ifpack2 preconditioner type 17311/head
authorMartin Kronbichler <martin.kronbichler@rub.de>
Fri, 19 Jul 2024 17:07:25 +0000 (19:07 +0200)
committerMartin Kronbichler <martin.kronbichler@rub.de>
Fri, 19 Jul 2024 17:07:25 +0000 (19:07 +0200)
include/deal.II/lac/trilinos_tpetra_types.h

index bf38dc778442b61d36ab4f4319cadcbb3cb7c217..4cd49089a9e05706edb88f56b0e137bed6346b47 100644 (file)
@@ -27,7 +27,9 @@
 
 // Forward declarations
 #  ifndef DOXYGEN
-#    include <Ifpack2_Preconditioner.hpp>
+#    ifdef DEAL_II_TRILINOS_WITH_IFPACK2
+#      include <Ifpack2_Preconditioner.hpp>
+#    endif
 #    include <Tpetra_CrsGraph_fwd.hpp>
 #    include <Tpetra_CrsMatrix_fwd.hpp>
 #    include <Tpetra_Export_fwd.hpp>
@@ -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 <typename Number, typename MemorySpace>
       using Ifpack2PreconType =
         Ifpack2::Preconditioner<Number, LO, GO, NodeType<MemorySpace>>;
+#  endif
 
     } // namespace TpetraTypes
   }   // namespace TpetraWrappers

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.