From 0d44b60612ffb6d44c15e3defc043f6179540979 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Tue, 30 Jan 2024 23:28:07 -0500 Subject: make tabulator quit if there is only one process --- tabulator-mpi/source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabulator-mpi/source.cpp b/tabulator-mpi/source.cpp index ed9c239..f7fe54f 100644 --- a/tabulator-mpi/source.cpp +++ b/tabulator-mpi/source.cpp @@ -28,7 +28,7 @@ int main(int argc, char **argv) { MPI_Comm_size(MPI_COMM_WORLD, &size); if (size < 2) - error("this must be run under mpi with at least two processes.", rank); + return error("this must be run under mpi with at least two processes.", rank); std::vector filenames = {}; int rounds_per_chunk = default_rounds_per_chunk; -- cgit v1.2.3