OpenLB 1.7
|
Helper class for non blocking MPI communication. More...
#include <mpiManager.h>
Public Member Functions | |
MpiNonBlockingHelper () | |
~MpiNonBlockingHelper ()=default | |
MpiNonBlockingHelper (MpiNonBlockingHelper &&rhs)=default | |
MpiNonBlockingHelper (const MpiNonBlockingHelper &)=delete | |
MpiNonBlockingHelper & | operator= (const MpiNonBlockingHelper &)=delete |
void | allocate (unsigned i) |
Allocates memory. | |
void | free () |
Reset. | |
unsigned | get_size () const |
Returns the size of the vector _mpiRequest/_mpiStatus. | |
MPI_Request * | get_mpiRequest (int i=0) const |
Get the specified request object. | |
MPI_Status * | get_mpiStatus (int i=0) const |
Get the specified status object. | |
void | start (int i) |
void | wait (int i) |
bool | isDone (int i) |
void | swap (MpiNonBlockingHelper &rhs) |
Swap method. | |
Helper class for non blocking MPI communication.
Definition at line 51 of file mpiManager.h.
olb::singleton::MpiNonBlockingHelper::MpiNonBlockingHelper | ( | ) |
Definition at line 1312 of file mpiManager.cpp.
|
default |
|
default |
|
delete |
void olb::singleton::MpiNonBlockingHelper::allocate | ( | unsigned | i | ) |
Allocates memory.
Definition at line 1323 of file mpiManager.cpp.
References free().
void olb::singleton::MpiNonBlockingHelper::free | ( | ) |
Reset.
Definition at line 1331 of file mpiManager.cpp.
MPI_Request * olb::singleton::MpiNonBlockingHelper::get_mpiRequest | ( | int | i = 0 | ) | const |
Get the specified request object.
Definition at line 1341 of file mpiManager.cpp.
References OLB_PRECONDITION.
MPI_Status * olb::singleton::MpiNonBlockingHelper::get_mpiStatus | ( | int | i = 0 | ) | const |
Get the specified status object.
Definition at line 1347 of file mpiManager.cpp.
References OLB_PRECONDITION.
unsigned olb::singleton::MpiNonBlockingHelper::get_size | ( | ) | const |
Returns the size of the vector _mpiRequest/_mpiStatus.
Definition at line 1336 of file mpiManager.cpp.
bool olb::singleton::MpiNonBlockingHelper::isDone | ( | int | i | ) |
Definition at line 1363 of file mpiManager.cpp.
References get_mpiRequest().
|
delete |
void olb::singleton::MpiNonBlockingHelper::start | ( | int | i | ) |
Definition at line 1353 of file mpiManager.cpp.
References get_mpiRequest().
void olb::singleton::MpiNonBlockingHelper::swap | ( | MpiNonBlockingHelper & | rhs | ) |
Swap method.
Definition at line 1316 of file mpiManager.cpp.
void olb::singleton::MpiNonBlockingHelper::wait | ( | int | i | ) |
Definition at line 1358 of file mpiManager.cpp.
References get_mpiRequest(), and get_mpiStatus().