preCICE v3.1.2
Loading...
Searching...
No Matches
MPIRequest.cpp
Go to the documentation of this file.
1#ifndef PRECICE_NO_MPI
2
3#include "com/MPIRequest.hpp"
4
5namespace precice::com {
6MPIRequest::MPIRequest(MPI_Request request)
7 : _request(request)
8{
9}
10
12{
13 int complete = 0;
14
15 MPI_Test(&_request, &complete, MPI_STATUS_IGNORE);
16
17 return complete;
18}
19
21{
22 MPI_Wait(&_request, MPI_STATUS_IGNORE);
23}
24} // namespace precice::com
25
26#endif // not PRECICE_NO_MPI
MPIRequest(MPI_Request request)
Definition MPIRequest.cpp:6
contains the data communication abstraction layer.