From 12c5ec813c2f14629c4c980cd4cc87dc06b627a6 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 4 Nov 2015 09:59:27 +0000 Subject: [PATCH] Useful debug messages (commented out) are included for preservation in case I need to revisit this --- lib/cshift/Cshift_mpi.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/cshift/Cshift_mpi.h b/lib/cshift/Cshift_mpi.h index 9cdfd316..915b75ee 100644 --- a/lib/cshift/Cshift_mpi.h +++ b/lib/cshift/Cshift_mpi.h @@ -9,7 +9,7 @@ template Lattice Cshift(const Lattice &rhs,int dimension typedef typename vobj::vector_type vector_type; typedef typename vobj::scalar_type scalar_type; - Lattice ret(rhs._grid); + Lattice ret(rhs._grid); int fd = rhs._grid->_fdimensions[dimension]; int rd = rhs._grid->_rdimensions[dimension]; @@ -26,10 +26,13 @@ template Lattice Cshift(const Lattice &rhs,int dimension if ( !comm_dim ) { + // std::cout << "Cshift_local" < void Cshift_comms(Lattice& ret,const Lattice &r sshift[0] = rhs._grid->CheckerBoardShiftForCB(rhs.checkerboard,dimension,shift,Even); sshift[1] = rhs._grid->CheckerBoardShiftForCB(rhs.checkerboard,dimension,shift,Odd); + // std::cout << "Cshift_comms dim "< void Cshift_comms(Lattice &ret,const Lattice &r int xmit_to_rank; grid->ShiftedRanks(dimension,comm_proc,xmit_to_rank,recv_from_rank); + grid->SendToRecvFrom((void *)&send_buf[0], xmit_to_rank, (void *)&recv_buf[0], recv_from_rank, bytes); + // for(int i=0;i