From 6aa768c7c840fa326596a3b40a0954a9f475ed63 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Wed, 31 May 2023 01:30:26 -0400 Subject: new tabulator running look --- tabulator-mpi/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tabulator-mpi/main.cpp') diff --git a/tabulator-mpi/main.cpp b/tabulator-mpi/main.cpp index 959cd8c..cb60ecb 100644 --- a/tabulator-mpi/main.cpp +++ b/tabulator-mpi/main.cpp @@ -33,6 +33,11 @@ int main(int argc, char **argv) { MPI_Comm_rank(MPI_COMM_WORLD, &comm_rank); MPI_Comm_size(MPI_COMM_WORLD, &comm_size); + if (comm_size < 2) { + fprintf(stderr, "at least two processes are required\n"); + return 1; + } + const lib94::warrior **warriors = new const lib94::warrior *[argc - 1]; for (int i = 0; i < argc - 1; ++i) warriors[i] = load_warrior(argv[i + 1]); -- cgit v1.2.3