![]() |
PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
#include <mpi.h>#include <string>#include <vector>#include <thread>Go to the source code of this file.
Data Structures | |
| struct | util::parallel::MpiStatus |
| Struct that stores MPI-related information. More... | |
Namespaces | |
| namespace | util |
| Collection of methods useful in simulation. | |
| namespace | util::parallel |
| Implements some key functions and classes regularly used in the code when running with MPI. | |
Functions | |
| void | util::parallel::initMpi (int argc=0, char *argv[]=nullptr) |
| Initializes MPI and also creates MpiStatus struct. | |
| void | util::parallel::initMpiStatus () |
| Initializes MpiStatus struct. | |
| bool | util::parallel::isMpiEnabled () |
| Function to check if MPI is enabled. | |
| int | util::parallel::mpiSize () |
| Get size (number) of processors. | |
| int | util::parallel::mpiRank () |
| get rank (id) of this processor | |
| MPI_Comm | util::parallel::mpiComm () |
| Get MPI comm. | |
| const MpiStatus * | util::parallel::getMpiStatus () |
| Returns pointer to MpiStatus struct. | |
| void | util::parallel::initNThreads (unsigned int nThreads=std::thread::hardware_concurrency()) |
| Initializes MpiStatus struct. | |
| unsigned int | util::parallel::getNThreads () |
| Get number of threads to be used by taskflow. | |