From ef9c24aca783f9a202f6de6abb7e60a60bbee4f6 Mon Sep 17 00:00:00 2001 From: lhdamiani Date: Wed, 14 Jul 2021 21:51:07 +0200 Subject: [PATCH] mpi rank fix for the writer index --- std-det-writer/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std-det-writer/src/main.cpp b/std-det-writer/src/main.cpp index 33197ab..710525b 100644 --- a/std-det-writer/src/main.cpp +++ b/std-det-writer/src/main.cpp @@ -38,7 +38,7 @@ int main (int argc, char *argv[]) MPI_Comm_size(MPI_COMM_WORLD, &n_writers); int i_writer; - MPI_Comm_size(MPI_COMM_WORLD, &i_writer); + MPI_Comm_rank(MPI_COMM_WORLD, &i_writer); auto ctx = zmq_ctx_new(); zmq_ctx_set(ctx, ZMQ_IO_THREADS, LIVE_ZMQ_IO_THREADS);