diff options
author | Benji Dial <benji@benjidial.net> | 2024-01-30 23:28:07 -0500 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2024-01-30 23:28:07 -0500 |
commit | 0d44b60612ffb6d44c15e3defc043f6179540979 (patch) | |
tree | 75b062daf2fb20060eb3bc5a63dde57b567587bc | |
parent | ecbb0627092bf4e77cf211b0b7632f0d2448d025 (diff) | |
download | lib94-0d44b60612ffb6d44c15e3defc043f6179540979.tar.gz |
make tabulator quit if there is only one process
-rw-r--r-- | tabulator-mpi/source.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::string> filenames = {}; int rounds_per_chunk = default_rounds_per_chunk; |