101int main(
int argc,
char *argv[])
106 if (argc == 2 &&
std::string(argv[1]) ==
"--list_units") {
112 utils::Parallel::initializeTestingMPI(&argc, &argv);
113 const auto rank = utils::Parallel::current()->rank();
114 const auto size = utils::Parallel::current()->size();
115 logging::setMPIRank(rank);
118 if (size < 4 && argc < 2) {
120 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";
122 utils::Parallel::finalizeTestingMPI();
126 std::cout <<
"This test suite runs on rank " << rank <<
" of " << size <<
'\n';
133 int retCode = boost::unit_test::unit_test_main(&init_unit_test, argc, argv);
137 if ((testsRan == 0) && (rank != 0)) {
138 retCode = EXIT_SUCCESS;
142#ifndef PRECICE_NO_GINKGO
145 utils::IntraComm::getCommunication() =
nullptr;
146 utils::Parallel::finalizeTestingMPI();
int main(int argc, char *argv[])
Entry point for the boost test executable.
void removeStaleRunDirectory()