]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Restrict VectorTools::add_constant for TpetraWrappers::Vector
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 23 Feb 2023 14:55:35 +0000 (09:55 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 23 Feb 2023 14:55:35 +0000 (09:55 -0500)
include/deal.II/numerics/vector_tools_mean_value.templates.h

index 67d451e768c16ca72fb6980cdbd743fc123ff249..5b3b18c0b41423152fdf0b628f19db5fc72dfada 100644 (file)
@@ -269,7 +269,23 @@ namespace VectorTools
     // TODO: no vector access using operator()
     AssertThrow(false, ExcNotImplemented());
   }
-#endif
+
+
+
+#  ifdef DEAL_II_TRILINOS_WITH_TPETRA
+  template <int dim, int spacedim>
+  template <typename ValueType>
+  void
+  add_constant(LinearAlgebra::TpetraWrappers::Vector<ValueType> &,
+               const DoFHandler<dim, spacedim> &,
+               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
 
 
 

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.