]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix concepts support for TpetraWrappers::Vector
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 15 Mar 2023 17:25:48 +0000 (13:25 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 15 Mar 2023 17:25:48 +0000 (13:25 -0400)
include/deal.II/base/template_constraints.h

index b1dab26d85adcbb8c788d0f3cc63c69ad05d02f0..ff8e3b8249cee747db833342c041a706efb1cd12 100644 (file)
@@ -741,6 +741,7 @@ namespace LinearAlgebra
 #  ifdef DEAL_II_TRILINOS_WITH_TPETRA
   namespace TpetraWrappers
   {
+    template <typename Number>
     class Vector;
   }
 #  endif
@@ -803,40 +804,40 @@ namespace concepts
 
 #  ifdef DEAL_II_WITH_PETSC
     template <>
-    constexpr bool is_dealii_vector_type<dealii::PETScWrappers::Vector> = true;
+    inline constexpr bool is_dealii_vector_type<dealii::PETScWrappers::Vector> =
+      true;
 
     template <>
-    constexpr bool is_dealii_vector_type<dealii::PETScWrappers::BlockVector> =
-      true;
+    inline constexpr bool
+      is_dealii_vector_type<dealii::PETScWrappers::BlockVector> = true;
 
     template <>
-    constexpr bool is_dealii_vector_type<dealii::PETScWrappers::MPI::Vector> =
-      true;
+    inline constexpr bool
+      is_dealii_vector_type<dealii::PETScWrappers::MPI::Vector> = true;
 
     template <>
-    constexpr bool
+    inline constexpr bool
       is_dealii_vector_type<dealii::PETScWrappers::MPI::BlockVector> = true;
 #  endif
 
 #  ifdef DEAL_II_WITH_TRILINOS
     template <>
-    constexpr bool
+    inline constexpr bool
       is_dealii_vector_type<dealii::TrilinosWrappers::MPI::Vector> = true;
 
     template <>
-    constexpr bool
+    inline constexpr bool
       is_dealii_vector_type<dealii::TrilinosWrappers::MPI::BlockVector> = true;
 
     template <>
-    constexpr bool
+    inline constexpr bool
       is_dealii_vector_type<dealii::LinearAlgebra::EpetraWrappers::Vector> =
         true;
 
 #    ifdef DEAL_II_TRILINOS_WITH_TPETRA
-    template <>
-    constexpr bool
-      is_dealii_vector_type<dealii::LinearAlgebra::TpetraWrappers::Vector> =
-        true;
+    template <typename Number>
+    constexpr bool is_dealii_vector_type<
+      dealii::LinearAlgebra::TpetraWrappers::Vector<Number>> = true;
 #    endif
 #  endif
   } // namespace internal

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.