#include <EsysMPI.h>
◆ ~JMPI_()
escript::JMPI_::~JMPI_ |
( |
| ) |
|
◆ JMPI_()
escript::JMPI_::JMPI_ |
( |
MPI_Comm |
comm, |
|
|
bool |
owncomm |
|
) |
| |
|
private |
◆ appendRankToFileName()
std::string escript::JMPI_::appendRankToFileName |
( |
const std::string & |
fileName | ) |
const |
|
inline |
appends MPI rank to a file name if MPI size > 1
References rank, and size.
◆ counter()
int escript::JMPI_::counter |
( |
| ) |
const |
|
inline |
returns the current value of the message tag counter
References msg_tag_counter.
◆ incCounter()
void escript::JMPI_::incCounter |
( |
int |
i = 1 | ) |
|
|
inline |
◆ isValid()
bool escript::JMPI_::isValid |
( |
| ) |
const |
|
inline |
returns true if this has a valid MPI communicator
References comm, and MPI_COMM_NULL.
◆ mod_rank()
int escript::JMPI_::mod_rank |
( |
int |
k | ) |
const |
|
inline |
N = #CPUs, k is a CPU number but out of range or even negative. Return a CPU number in 0...N-1.
References size.
◆ setCounter()
void escript::JMPI_::setCounter |
( |
int |
value | ) |
|
|
inline |
◆ setDistribution()
◆ split()
◆ makeInfo
creates a JMPI shared pointer from MPI communicator if owncom is true, the communicator is freed when mpi info is destroyed.
◆ comm
◆ msg_tag_counter
int escript::JMPI_::msg_tag_counter |
|
private |
◆ ownscomm
bool escript::JMPI_::ownscomm |
|
private |
◆ rank
◆ size
The documentation for this class was generated from the following files: