|
DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
|
Lightweight bundle of an MPI communicator and the calling rank's coordinates. More...
#include <MPI.hpp>
Public Member Functions | |
| MPIInfo ()=default | |
| MPIInfo (MPI_Comm ncomm) | |
| Wrap an existing MPI communicator; queries rank and size. | |
| MPIInfo (MPI_Comm nc, int r, int s) | |
Low-level constructor for callers that already know (rank, size). | |
| void | setWorld () |
Initialise the object to MPI_COMM_WORLD. Requires MPI_Init to have run. | |
| bool | operator== (const MPIInfo &r) const |
| Exact triple equality. | |
Public Attributes | |
| MPI_Comm | comm = MPI_COMM_NULL |
| The underlying MPI communicator handle. | |
| int | rank = -1 |
This rank's 0-based index within comm (-1 until initialised). | |
| int | size = -1 |
Number of ranks in comm (-1 until initialised). | |
Lightweight bundle of an MPI communicator and the calling rank's coordinates.
The canonical "where am I in the parallel world" object passed almost everywhere in DNDSR. Cheap to copy (three ints). Two-phase construction is supported:
MPI_Comm ctor) once MPI_Init has run.Comparison (operator==) tests exact equality of the triple (comm, rank, size).
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
| MPI_Comm DNDS::MPIInfo::comm = MPI_COMM_NULL |
| int DNDS::MPIInfo::rank = -1 |
| int DNDS::MPIInfo::size = -1 |