]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Define HostViewType in terms of DualViewType 17437/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 6 Aug 2024 15:06:18 +0000 (11:06 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 6 Aug 2024 15:16:10 +0000 (11:16 -0400)
include/deal.II/lac/trilinos_tpetra_types.h

index fb5242ad3707aa8094d3e43c3811e0b60e11bbe4..56de3400661a1bfaf325d2b53b088b84780bb2b9 100644 (file)
@@ -145,17 +145,6 @@ namespace LinearAlgebra
       using RowMatrixType =
         Tpetra::RowMatrix<Number, LO, GO, NodeType<MemorySpace>>;
 
-
-      /**
-       * @brief Typedef for the Kokkos::View type.
-       * This is needed for shallow copies of deal.II LA structures
-       * to Trilinos LA structures.
-       *
-       */
-      template <typename Number>
-      using HostViewType =
-        typename VectorType<Number, dealii::MemorySpace::Host>::host_view_type;
-
       /**
        * @brief Typedef for the Kokkos::DualView type.
        * This is needed for shallow copies of deal.II LA structures
@@ -165,6 +154,15 @@ namespace LinearAlgebra
       using DualViewType =
         typename VectorType<Number, MemorySpace>::dual_view_type;
 
+      /**
+       * @brief Typedef for the Kokkos::View type.
+       * This is needed for shallow copies of deal.II LA structures
+       * to Trilinos LA structures.
+       *
+       */
+      template <typename Number>
+      using HostViewType =
+        typename DualViewType<Number, dealii::MemorySpace::Host>::t_host;
 
 #  ifdef DEAL_II_TRILINOS_WITH_IFPACK2
       /**

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.