Skip to content

Commit

Permalink
Merge pull request trilinos#6447 from trilinos/rol-fixes
Browse files Browse the repository at this point in the history
rol: updates to fix compile errors with kokkos deprecated code off
  • Loading branch information
ndellingwood authored Dec 13, 2019
2 parents 3b7d080 + ab2e990 commit 5363cd6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ class PinTVectorCommunication_Tpetra : public PinTVectorCommunication<Real> {
void send(MPI_Comm comm,int rank,Vector<Real> & source,int tag=0) const override
{
auto & tp_source = *dynamic_cast<TpetraMultiVector<Real>&>(source).getVector();
tp_source.template sync<Kokkos::HostSpace>();
tp_source.sync_host();

auto view = tp_source.template getLocalView<Kokkos::HostSpace>();
auto view = tp_source.getLocalViewHost();

// int myRank = -1;
// MPI_Comm_rank(comm, &myRank);
Expand All @@ -82,7 +82,7 @@ class PinTVectorCommunication_Tpetra : public PinTVectorCommunication<Real> {
void recv(MPI_Comm comm,int rank,Vector<Real> & dest,int tag=0) const override
{
auto & tp_dest = *dynamic_cast<TpetraMultiVector<Real>&>(dest).getVector();
auto view = tp_dest.template getLocalView<Kokkos::HostSpace>();
auto view = tp_dest.getLocalViewHost();

// int myRank = -1;
// MPI_Comm_rank(comm, &myRank);
Expand All @@ -98,7 +98,7 @@ class PinTVectorCommunication_Tpetra : public PinTVectorCommunication<Real> {
void recvSumInto(MPI_Comm comm,int rank,Vector<Real> & dest,int tag=0) const override
{
auto & tp_dest = *dynamic_cast<TpetraMultiVector<Real>&>(dest).getVector();
auto view = tp_dest.template getLocalView<Kokkos::HostSpace>();
auto view = tp_dest.getLocalViewHost();

int myRank = -1;
MPI_Comm_rank(comm, &myRank);
Expand Down

0 comments on commit 5363cd6

Please sign in to comment.