MFEM  v4.6.0
Finite element discretization library
Public Member Functions | List of all members
mfem::MPI_Session Class Reference

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. More...
 
int WorldSize () const
 Return MPI_COMM_WORLD's size. More...
 
bool Root () const
 Return true if WorldRank() == 0. More...
 

Detailed Description

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 93 of file communication.hpp.

Constructor & Destructor Documentation

◆ MPI_Session() [1/2]

mfem::MPI_Session::MPI_Session ( )
inline

Definition at line 96 of file communication.hpp.

◆ MPI_Session() [2/2]

mfem::MPI_Session::MPI_Session ( int &  argc,
char **&  argv 
)
inline

Definition at line 97 of file communication.hpp.

Member Function Documentation

◆ Root()

bool mfem::MPI_Session::Root ( ) const
inline

Return true if WorldRank() == 0.

Definition at line 103 of file communication.hpp.

◆ WorldRank()

int mfem::MPI_Session::WorldRank ( ) const
inline

Return MPI_COMM_WORLD's rank.

Definition at line 99 of file communication.hpp.

◆ WorldSize()

int mfem::MPI_Session::WorldSize ( ) const
inline

Return MPI_COMM_WORLD's size.

Definition at line 101 of file communication.hpp.


The documentation for this class was generated from the following file: