Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/onqtam/doctest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBerengerBerthoul <56256655+BerengerBerthoul@users.noreply.github.com>2022-02-11 02:38:05 +0300
committerGitHub <noreply@github.com>2022-02-11 02:38:05 +0300
commit110d30562659947a2fcfed86f81289e0c95b2be5 (patch)
tree24b6eb778ec789f472635a2831b3d3d21ffd4f3f
parent90ba0a95cebced29bdd4c9614391bd8a650a5171 (diff)
Fix MPI extension to work if launched without mpirun/mpiexec (#612)
-rw-r--r--doctest/extensions/doctest_mpi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/doctest/extensions/doctest_mpi.h b/doctest/extensions/doctest_mpi.h
index 152b92da..1552458e 100644
--- a/doctest/extensions/doctest_mpi.h
+++ b/doctest/extensions/doctest_mpi.h
@@ -21,7 +21,7 @@ int nb_test_cases_skipped_insufficient_procs = 0;
// Record size of MPI_COMM_WORLD with mpi_comm_world_size()
// so that it can be compared to the MPI_Comm_size value
// once MPI_Init_thread has been called
-int world_size_before_init = -1;
+int world_size_before_init = 1;
std::string thread_level_to_string(int thread_lvl);