]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compilation with Tpetra vector, 2nd attempt 9712/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 22 Mar 2020 16:19:48 +0000 (17:19 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 22 Mar 2020 16:22:33 +0000 (17:22 +0100)
include/deal.II/numerics/data_out_dof_data.templates.h

index 3a009842001e6c23d1a7644391af5f9334c073a5..af7fbe654ff98c26eb4364f0d35f6ce55fa84c4f 100644 (file)
@@ -443,10 +443,22 @@ namespace internal
 
 
 #if defined(DEAL_II_TRILINOS_WITH_TPETRA) && defined(DEAL_II_WITH_MPI)
-    template <typename Number>
+    template <>
+    inline void
+    VectorHelper<LinearAlgebra::TpetraWrappers::Vector<double>>::extract(
+      const LinearAlgebra::TpetraWrappers::Vector<double> & /*vector*/,
+      const std::vector<types::global_dof_index> & /*indices*/,
+      const ComponentExtractor /*extract_component*/,
+      std::vector<double> & /*values*/)
+    {
+      // TODO: we don't have element access
+      Assert(false, ExcNotImplemented());
+    }
+
+    template <>
     inline void
-    VectorHelper<LinearAlgebra::TpetraWrappers::Vector<Number>>::extract(
-      const LinearAlgebra::TpetraWrappers::Vector<Number> & /*vector*/,
+    VectorHelper<LinearAlgebra::TpetraWrappers::Vector<float>>::extract(
+      const LinearAlgebra::TpetraWrappers::Vector<float> & /*vector*/,
       const std::vector<types::global_dof_index> & /*indices*/,
       const ComponentExtractor /*extract_component*/,
       std::vector<double> & /*values*/)

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.