From: Daniel Arndt Date: Tue, 6 Aug 2024 15:06:18 +0000 (-0400) Subject: Define HostViewType in terms of DualViewType X-Git-Tag: v9.6.0-rc2~2^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75d503e207346fc4924541000ef0ca9d3e517a9c;p=dealii.git Define HostViewType in terms of DualViewType --- diff --git a/include/deal.II/lac/trilinos_tpetra_types.h b/include/deal.II/lac/trilinos_tpetra_types.h index fb5242ad37..56de340066 100644 --- a/include/deal.II/lac/trilinos_tpetra_types.h +++ b/include/deal.II/lac/trilinos_tpetra_types.h @@ -145,17 +145,6 @@ namespace LinearAlgebra using RowMatrixType = Tpetra::RowMatrix>; - - /** - * @brief Typedef for the Kokkos::View type. - * This is needed for shallow copies of deal.II LA structures - * to Trilinos LA structures. - * - */ - template - using HostViewType = - typename VectorType::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::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 + using HostViewType = + typename DualViewType::t_host; # ifdef DEAL_II_TRILINOS_WITH_IFPACK2 /**