/*! Set recevie information for the specified rank \param rank is the rank of the processor associated to the receive \param length is the length, expressed in bytes, of the data to be received */ void DataCommunicator::setRecv(int rank, long length) { // Clear the recv associated to the rank clearRecv(rank); // Set recv info int id = m_recvIds.size(); m_recvIds[rank] = id; m_recvRanks.push_back(rank); m_recvRequests.push_back(MPI_REQUEST_NULL); m_recvBuffers.emplace_back(length); // If the receives are continous start the receive if (areRecvsContinuous()) { startRecv(rank); } }
void clear(){ clearSend(); clearRecv(); }