]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix VectorTools::add_constant for TpetraWrappers::Vector
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 24 Feb 2023 15:52:06 +0000 (10:52 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 24 Feb 2023 15:52:06 +0000 (10:52 -0500)
include/deal.II/numerics/vector_tools_mean_value.templates.h

index 67d451e768c16ca72fb6980cdbd743fc123ff249..e2a182d25bb3c68ec804c86d0508104cfcec2019 100644 (file)
@@ -269,6 +269,21 @@ namespace VectorTools
     // TODO: no vector access using operator()
     AssertThrow(false, ExcNotImplemented());
   }
+
+
+
+#  ifdef DEAL_II_TRILINOS_WITH_TPETRA
+  template <int dim, int spacedim, typename ValueType>
+  void
+  add_constant(LinearAlgebra::TpetraWrappers::Vector<ValueType> &,
+               const DoFHandler<dim, spacedim> &,
+               const unsigned int,
+               const ValueType)
+  {
+    // TODO: no vector access using operator()
+    AssertThrow(false, ExcNotImplemented());
+  }
+#  endif
 #endif
 
 

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.