47 std::string
printStr(
int nt = 0,
int lvl = 0)
const;
56 void initMpi(
int argc = 0,
char *argv[] =
nullptr);
102 unsigned int nThreads = std::thread::hardware_concurrency());
bool isMpiEnabled()
Function to check if MPI is enabled.
void initMpiStatus()
Initializes MpiStatus struct.
unsigned int getNThreads()
Get number of threads to be used by taskflow.
void initNThreads(unsigned int nThreads=std::thread::hardware_concurrency())
Initializes MpiStatus struct.
const MpiStatus * getMpiStatus()
Returns pointer to MpiStatus struct.
void initMpi(int argc=0, char *argv[]=nullptr)
Initializes MPI and also creates MpiStatus struct.
int mpiSize()
Get size (number) of processors.
int mpiRank()
get rank (id) of this processor
MPI_Comm mpiComm()
Get MPI comm.
Collection of methods useful in simulation.
Struct that stores MPI-related information.
int d_mpiRank
Rank (id) of this processor.
bool d_mpiEnabled
Specifies if MPI is enabled (yes if code executed with more than one processor)
int d_mpiSize
Size (number) of processors.
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing printable information about the object.