fix bug in reading binary restarts for pair style coul/diel

This commit is contained in:
Axel Kohlmeyer
2020-08-07 16:51:12 -04:00
parent 0537cc721e
commit e217635e9a

View File

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