From 0ac08067596313f9cc3e6146e0a1e809b2ebdb41 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 23 Feb 2023 09:55:35 -0500 Subject: [PATCH] Restrict VectorTools::add_constant for TpetraWrappers::Vector --- .../vector_tools_mean_value.templates.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/include/deal.II/numerics/vector_tools_mean_value.templates.h b/include/deal.II/numerics/vector_tools_mean_value.templates.h index 67d451e768..5b3b18c0b4 100644 --- a/include/deal.II/numerics/vector_tools_mean_value.templates.h +++ b/include/deal.II/numerics/vector_tools_mean_value.templates.h @@ -269,7 +269,23 @@ namespace VectorTools // TODO: no vector access using operator() AssertThrow(false, ExcNotImplemented()); } -#endif + + + +# ifdef DEAL_II_TRILINOS_WITH_TPETRA + template + template + void + add_constant(LinearAlgebra::TpetraWrappers::Vector &, + const DoFHandler &, + const unsigned int, + const double) + { + // TODO: no vector access using operator() + AssertThrow(false, ExcNotImplemented()); + } +# endif // DEAL_II_TRILINOS_WITH_TPETRA +#endif // DEAL_II_WITH_TRILINOS -- 2.39.5