409
411
fread(&multiplicity[1],sizeof(int),atom->ndihedraltypes,fp);
410
412
fread(&shift[1],sizeof(int),atom->ndihedraltypes,fp);
411
413
fread(&weight[1],sizeof(double),atom->ndihedraltypes,fp);
414
fread(&weightflag,sizeof(int),1,fp);
413
416
MPI_Bcast(&k[1],atom->ndihedraltypes,MPI_DOUBLE,0,world);
414
417
MPI_Bcast(&multiplicity[1],atom->ndihedraltypes,MPI_INT,0,world);
415
418
MPI_Bcast(&shift[1],atom->ndihedraltypes,MPI_INT,0,world);
416
419
MPI_Bcast(&weight[1],atom->ndihedraltypes,MPI_DOUBLE,0,world);
420
MPI_Bcast(&weightflag,1,MPI_INT,0,world);
418
422
for (int i = 1; i <= atom->ndihedraltypes; i++) {