wrapper arount MPI_Comm, provides proper copy operators. Classes that have a communicator are meant to store a Communicator object instead of a raw MPI_Comm
More...
#include <Communicator.h>
wrapper arount MPI_Comm, provides proper copy operators. Classes that have a communicator are meant to store a Communicator object instead of a raw MPI_Comm
◆ Communicator() [1/2]
ThunderEgg::Communicator::Communicator |
( |
const Communicator & |
other | ) |
|
◆ Communicator() [2/2]
ThunderEgg::Communicator::Communicator |
( |
MPI_Comm |
comm | ) |
|
|
explicit |
Construct a new Communicator from a specified MPI_Comm.
- Parameters
-
◆ getMPIComm()
MPI_Comm ThunderEgg::Communicator::getMPIComm |
( |
| ) |
const |
Get the raw MPI_Comm object.
- Returns
- MPI_Comm the comm
◆ getRank()
int ThunderEgg::Communicator::getRank |
( |
| ) |
const |
Get the rank of this processor.
- Returns
- int the rank
◆ getSize()
int ThunderEgg::Communicator::getSize |
( |
| ) |
const |
Get the size of the communicator.
- Returns
- int the size
◆ operator=()
Copy the communcator object.
- Parameters
-
- Returns
- Communicator& this object
The documentation for this class was generated from the following file: