From f4ac5f11f8ee2a64d55e6ced88b0ac3d86571c31 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 15 Mar 2023 13:25:48 -0400 Subject: [PATCH] Fix concepts support for TpetraWrappers::Vector --- include/deal.II/base/template_constraints.h | 27 +++++++++++---------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/include/deal.II/base/template_constraints.h b/include/deal.II/base/template_constraints.h index b1dab26d85..ff8e3b8249 100644 --- a/include/deal.II/base/template_constraints.h +++ b/include/deal.II/base/template_constraints.h @@ -741,6 +741,7 @@ namespace LinearAlgebra # ifdef DEAL_II_TRILINOS_WITH_TPETRA namespace TpetraWrappers { + template class Vector; } # endif @@ -803,40 +804,40 @@ namespace concepts # ifdef DEAL_II_WITH_PETSC template <> - constexpr bool is_dealii_vector_type = true; + inline constexpr bool is_dealii_vector_type = + true; template <> - constexpr bool is_dealii_vector_type = - true; + inline constexpr bool + is_dealii_vector_type = true; template <> - constexpr bool is_dealii_vector_type = - true; + inline constexpr bool + is_dealii_vector_type = true; template <> - constexpr bool + inline constexpr bool is_dealii_vector_type = true; # endif # ifdef DEAL_II_WITH_TRILINOS template <> - constexpr bool + inline constexpr bool is_dealii_vector_type = true; template <> - constexpr bool + inline constexpr bool is_dealii_vector_type = true; template <> - constexpr bool + inline constexpr bool is_dealii_vector_type = true; # ifdef DEAL_II_TRILINOS_WITH_TPETRA - template <> - constexpr bool - is_dealii_vector_type = - true; + template + constexpr bool is_dealii_vector_type< + dealii::LinearAlgebra::TpetraWrappers::Vector> = true; # endif # endif } // namespace internal -- 2.39.5