MFEM v4.7.0
Finite element discretization library
|
A simple convenience class based on the Mpi singleton class above. Preserved for backward compatibility. New code should use Mpi::Init() and other Mpi methods instead. More...
#include <communication.hpp>
Public Member Functions | |
MPI_Session () | |
MPI_Session (int &argc, char **&argv) | |
int | WorldRank () const |
Return MPI_COMM_WORLD's rank. | |
int | WorldSize () const |
Return MPI_COMM_WORLD's size. | |
bool | Root () const |
Return true if WorldRank() == 0. | |
A simple convenience class based on the Mpi singleton class above. Preserved for backward compatibility. New code should use Mpi::Init() and other Mpi methods instead.
Definition at line 115 of file communication.hpp.
|
inline |
Definition at line 118 of file communication.hpp.
|
inline |
Definition at line 119 of file communication.hpp.
|
inline |
Return true if WorldRank() == 0.
Definition at line 125 of file communication.hpp.
|
inline |
Return MPI_COMM_WORLD's rank.
Definition at line 121 of file communication.hpp.
|
inline |
Return MPI_COMM_WORLD's size.
Definition at line 123 of file communication.hpp.