diff --git a/lib/Stencil.h b/lib/Stencil.h index 4e3cfe3e..6816fdaa 100644 --- a/lib/Stencil.h +++ b/lib/Stencil.h @@ -112,7 +112,24 @@ namespace Grid { comms_bytes+=2.0*bytes; Packets.push_back(p); } - + /* + void Communicate(void ) { + // typedef CartesianCommunicator::CommsRequest_t CommsRequest_t; + // std::vector reqs(0); + commtime-=usecond(); + for(int i=0;iSendToRecvFrom( + Packets[i].send_buf, + Packets[i].to_rank, + Packets[i].recv_buf, + Packets[i].from_rank, + Packets[i].bytes); + Packets[i].done = 1; + } + // _grid->SendToRecvFromComplete(reqs); + commtime+=usecond(); + } + */ void Communicate(void ) { typedef CartesianCommunicator::CommsRequest_t CommsRequest_t; std::vector reqs(0); @@ -124,10 +141,12 @@ namespace Grid { Packets[i].recv_buf, Packets[i].from_rank, Packets[i].bytes); - Packets[i].done = 1; } _grid->SendToRecvFromComplete(reqs); commtime+=usecond(); + for(int i=0;i