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