From 2ffa7430ab49c55eb080b7c45ac3118e1b2eeebb Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 7 Aug 2020 16:58:56 -0400 Subject: [PATCH] fix restart bug in pair style coul/shield --- src/USER-MISC/pair_coul_shield.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/USER-MISC/pair_coul_shield.cpp b/src/USER-MISC/pair_coul_shield.cpp index e6916f0d22..14dad18594 100644 --- a/src/USER-MISC/pair_coul_shield.cpp +++ b/src/USER-MISC/pair_coul_shield.cpp @@ -297,6 +297,8 @@ void PairCoulShield::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,&sigmae[i][j],sizeof(double),1,fp,NULL,error);