PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
testParticle.cpp File Reference
#include "testParticleLib.h"
#include "util/io.h"
#include "util/parallelUtil.h"
#include <fmt/format.h>
Include dependency graph for testParticle.cpp:

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 16 of file testParticle.cpp.

16 {
17
18 // init parallel
21 util::io::print(fmt::format("Initialized MPI. MPI size = {}, MPI rank = {}\n", mpiSize, mpiRank));
23
25
26 return EXIT_SUCCESS;
27}
void testTransform()
Perform test on Fracture class and check if bitwise functions are working correctly.
std::string printStr(const T &msg, int nt=print_default_tab)
Returns formatted string for output.
Definition io.h:54
void print(const T &msg, int nt=print_default_tab, int printMpiRank=print_default_mpi_rank)
Prints formatted information.
Definition io.h:108
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

References util::parallel::getMpiStatus(), util::parallel::initMpi(), util::parallel::mpiRank(), util::parallel::mpiSize(), util::io::print(), and test::testTransform().

Here is the call graph for this function: