std::vector<std::vector<T2>> recv_buffers;
/**
- * Requests for sending requests and receiving answers to requests.
- * The first half of the array is used for the receive-answer
- * requests objects, the second half for the send-request request
- * objects.
+ * MPI request objects for sending request messages.
*/
- std::vector<MPI_Request> send_request_and_recv_answer_requests;
+ std::vector<MPI_Request> send_request_requests;
/**
* Buffers for sending answers to requests.
// 2) allocate memory
recv_buffers.resize(n_targets);
send_buffers.resize(n_targets);
- send_request_and_recv_answer_requests.resize(n_targets);
+ send_request_requests.resize(n_targets);
send_answer_requests.resize(n_sources);
requests_buffers.resize(n_sources);
rank,
tag_request,
this->comm,
- &send_request_and_recv_answer_requests[i]);
+ &send_request_requests[i]);
AssertThrowMPI(ierr);
}
#ifdef DEAL_II_WITH_MPI
// Finalize all MPI_Request objects for both the
// send-request and receive-answer operations.
- if (send_request_and_recv_answer_requests.size() > 0)
+ if (send_request_requests.size() > 0)
{
- const int ierr =
- MPI_Waitall(send_request_and_recv_answer_requests.size(),
- send_request_and_recv_answer_requests.data(),
- MPI_STATUSES_IGNORE);
+ const int ierr = MPI_Waitall(send_request_requests.size(),
+ send_request_requests.data(),
+ MPI_STATUSES_IGNORE);
AssertThrowMPI(ierr);
}