From e3c3106795a3f8fc4906fcfb5f56e0992caa9cce Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 17 Dec 2020 09:20:38 -0500 Subject: [PATCH] fix incorrect use of MPI_Gather() --- src/fix_temp_csld.cpp | 2 +- src/fix_temp_csvr.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fix_temp_csld.cpp b/src/fix_temp_csld.cpp index f01de7c2fa..48c18c4e4f 100644 --- a/src/fix_temp_csld.cpp +++ b/src/fix_temp_csld.cpp @@ -314,7 +314,7 @@ void FixTempCSLD::write_restart(FILE *fp) } double state[103]; random->get_state(state); - MPI_Gather(state,103,MPI_DOUBLE,list+2,103*comm->nprocs,MPI_DOUBLE,0,world); + MPI_Gather(state,103,MPI_DOUBLE,list+2,103,MPI_DOUBLE,0,world); if (comm->me == 0) { int size = nsize * sizeof(double); diff --git a/src/fix_temp_csvr.cpp b/src/fix_temp_csvr.cpp index 0130631172..e3fdb7fc80 100644 --- a/src/fix_temp_csvr.cpp +++ b/src/fix_temp_csvr.cpp @@ -347,7 +347,7 @@ void FixTempCSVR::write_restart(FILE *fp) } double state[103]; random->get_state(state); - MPI_Gather(state,103,MPI_DOUBLE,list+2,103*comm->nprocs,MPI_DOUBLE,0,world); + MPI_Gather(state,103,MPI_DOUBLE,list+2,103,MPI_DOUBLE,0,world); if (comm->me == 0) { int size = nsize * sizeof(double);