From: Daniel Arndt Date: Thu, 23 Feb 2023 14:55:35 +0000 (-0500) Subject: Restrict VectorTools::add_constant for TpetraWrappers::Vector X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ac08067596313f9cc3e6146e0a1e809b2ebdb41;p=dealii.git Restrict VectorTools::add_constant for TpetraWrappers::Vector --- 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