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);