Skip to content

Commit

Permalink
Merge branch 'xpetra-mv' into muelu-tpetra-dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Bettencourt committed Jun 9, 2021
2 parents 3421e3f + bec80dd commit 1ad8fed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ const Epetra_IntMultiVector & toEpetra(const MultiVector<int, int, GlobalOrdinal
//@{
#ifdef HAVE_XPETRA_KOKKOS_REFACTOR
typedef typename Xpetra::MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node>::dual_view_type dual_view_type;

#ifdef TPETRA_ENABLE_DEPRECATED_CODE
typename dual_view_type::t_host_um getHostLocalView () const {
typedef Kokkos::View< typename dual_view_type::t_host::data_type ,
Kokkos::LayoutLeft,
Expand Down Expand Up @@ -783,6 +783,7 @@ const Epetra_IntMultiVector & toEpetra(const MultiVector<int, int, GlobalOrdinal
getLocalView () const {
return this->MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::template getLocalView<TargetDeviceType>();
}
#endif
#endif

//@}
Expand Down
4 changes: 2 additions & 2 deletions packages/xpetra/src/Vector/Xpetra_EpetraIntVector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ const Epetra_IntVector & toEpetra(const Vector<int, int, GlobalOrdinal, Node> &)
//@{
#ifdef HAVE_XPETRA_KOKKOS_REFACTOR
typedef typename Xpetra::MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node>::dual_view_type dual_view_type;

#ifdef TPETRA_ENABLE_DEPRECATED_CODE
typename dual_view_type::t_host_um getHostLocalView () const {
typedef Kokkos::View< typename dual_view_type::t_host::data_type ,
Kokkos::LayoutLeft,
Expand Down Expand Up @@ -758,7 +758,7 @@ const Epetra_IntVector & toEpetra(const Vector<int, int, GlobalOrdinal, Node> &)
return this->MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::template getLocalView<TargetDeviceType>();
}
#endif

#endif
//@}

protected:
Expand Down

0 comments on commit 1ad8fed

Please sign in to comment.