From e217635e9ab168abc656436d8e7e7adb576b8ebe Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 7 Aug 2020 16:51:12 -0400 Subject: [PATCH] fix bug in reading binary restarts for pair style coul/diel --- src/USER-MISC/pair_coul_diel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/USER-MISC/pair_coul_diel.cpp b/src/USER-MISC/pair_coul_diel.cpp index bdb605f547..e0c675086f 100644 --- a/src/USER-MISC/pair_coul_diel.cpp +++ b/src/USER-MISC/pair_coul_diel.cpp @@ -281,6 +281,8 @@ void PairCoulDiel::read_restart(FILE *fp) int me = comm->me; for (i = 1; i <= atom->ntypes; i++) for (j = i; j <= atom->ntypes; j++) { + if (me == 0) utils::sfread(FLERR,&setflag[i][j],sizeof(int),1,fp,NULL,error); + MPI_Bcast(&setflag[i][j],1,MPI_INT,0,world); if (setflag[i][j]) { if (me == 0) { utils::sfread(FLERR,&rme[i][j],sizeof(double),1,fp,NULL,error);