From 75d503e207346fc4924541000ef0ca9d3e517a9c Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 6 Aug 2024 11:06:18 -0400 Subject: [PATCH] Define HostViewType in terms of DualViewType --- include/deal.II/lac/trilinos_tpetra_types.h | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) 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 /** -- 2.39.5