15#include <fmt/format.h>
18int main(
int argc,
char *argv[]) {
23 util::io::print(fmt::format(
"Initialized MPI. MPI size = {}, MPI rank = {}\n", mpiSize, mpiRank));
32 <<
") -i <data-filepath> -nThreads <number of threads to be used in taskflow>" << std::endl;
39 unsigned int nThreads;
42 nThreads = std::thread::hardware_concurrency();
43 util::io::print(fmt::format(
"Running test with default number of threads = {}\n", nThreads));
53 std::cout <<
"testPeriDEM: Pass\n";
55 std::cerr <<
"Error: " << msg <<
"\n";
size_t const MINOR_VERSION
size_t const UPDATE_VERSION
size_t const MAJOR_VERSION
std::string testPeriDEM(std::string filepath)
Tests PeriDEM model class.
void print(const T &msg, int nt=print_default_tab, int printMpiRank=print_default_mpi_rank)
Prints formatted information.
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