Unverified Commit 2ffa7430 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

fix restart bug in pair style coul/shield

parent 7d26fbc6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);