87int main(
int argc,
char *argv[])
92 utils::Parallel::initializeTestingMPI(&argc, &argv);
93 const auto rank = utils::Parallel::current()->rank();
94 const auto size = utils::Parallel::current()->size();
95 logging::setMPIRank(rank);
98 if (argc == 2 &&
std::string(argv[1]) ==
"--list_units") {
102 utils::Parallel::finalizeTestingMPI();
107 if (size < 4 && argc < 2) {
109 std::cerr <<
"ERROR: The tests require at least 4 MPI processes. Please use \"mpirun -np 4 ./testprecice\" or \"ctest\" to run the full testsuite. \n";
111 utils::Parallel::finalizeTestingMPI();
115 std::cout <<
"This test suite runs on rank " << rank <<
" of " << size <<
'\n';
122 int retCode = boost::unit_test::unit_test_main(&init_unit_test, argc, argv);
126 if ((testsRan == 0) && (rank != 0)) {
127 retCode = EXIT_SUCCESS;
130 utils::IntraComm::getCommunication() =
nullptr;
131 utils::Parallel::finalizeTestingMPI();
int main(int argc, char **argv)
void removeStaleRunDirectory()