git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2042 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -480,6 +480,7 @@ void PairGayBerne::write_restart_settings(FILE *fp)
|
||||
fwrite(&upsilon,sizeof(double),1,fp);
|
||||
fwrite(&mu,sizeof(double),1,fp);
|
||||
fwrite(&cut_global,sizeof(double),1,fp);
|
||||
fwrite(&offset_flag,sizeof(int),1,fp);
|
||||
fwrite(&mix_flag,sizeof(int),1,fp);
|
||||
}
|
||||
|
||||
@ -495,12 +496,14 @@ void PairGayBerne::read_restart_settings(FILE *fp)
|
||||
fread(&upsilon,sizeof(double),1,fp);
|
||||
fread(&mu,sizeof(double),1,fp);
|
||||
fread(&cut_global,sizeof(double),1,fp);
|
||||
fread(&offset_flag,sizeof(int),1,fp);
|
||||
fread(&mix_flag,sizeof(int),1,fp);
|
||||
}
|
||||
MPI_Bcast(&gamma,1,MPI_DOUBLE,0,world);
|
||||
MPI_Bcast(&upsilon,1,MPI_DOUBLE,0,world);
|
||||
MPI_Bcast(&mu,1,MPI_DOUBLE,0,world);
|
||||
MPI_Bcast(&cut_global,1,MPI_DOUBLE,0,world);
|
||||
MPI_Bcast(&offset_flag,1,MPI_INT,0,world);
|
||||
MPI_Bcast(&mix_flag,1,MPI_INT,0,world);
|
||||
}
|
||||
|
||||
|
||||
@ -475,6 +475,7 @@ void PairRESquared::read_restart(FILE *fp)
|
||||
void PairRESquared::write_restart_settings(FILE *fp)
|
||||
{
|
||||
fwrite(&cut_global,sizeof(double),1,fp);
|
||||
fwrite(&offset_flag,sizeof(int),1,fp);
|
||||
fwrite(&mix_flag,sizeof(int),1,fp);
|
||||
}
|
||||
|
||||
@ -487,9 +488,11 @@ void PairRESquared::read_restart_settings(FILE *fp)
|
||||
int me = comm->me;
|
||||
if (me == 0) {
|
||||
fread(&cut_global,sizeof(double),1,fp);
|
||||
fread(&offset_flag,sizeof(int),1,fp);
|
||||
fread(&mix_flag,sizeof(int),1,fp);
|
||||
}
|
||||
MPI_Bcast(&cut_global,1,MPI_DOUBLE,0,world);
|
||||
MPI_Bcast(&offset_flag,1,MPI_INT,0,world);
|
||||
MPI_Bcast(&mix_flag,1,MPI_INT,0,world);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user