summaryrefslogtreecommitdiff
path: root/tabulator-mpi/source.cpp
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-01-30 23:28:07 -0500
committerBenji Dial <benji@benjidial.net>2024-01-30 23:28:07 -0500
commit0d44b60612ffb6d44c15e3defc043f6179540979 (patch)
tree75b062daf2fb20060eb3bc5a63dde57b567587bc /tabulator-mpi/source.cpp
parentecbb0627092bf4e77cf211b0b7632f0d2448d025 (diff)
downloadlib94-0d44b60612ffb6d44c15e3defc043f6179540979.tar.gz
make tabulator quit if there is only one process
Diffstat (limited to 'tabulator-mpi/source.cpp')
-rw-r--r--tabulator-mpi/source.cpp2
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;