read/write settings in restart files for bonded hybrid styles
this allows to properly restart table styles, which require additional settings unlike all other bonded styles.
This commit is contained in:
@ -306,6 +306,7 @@ void ImproperHybrid::write_restart(FILE *fp)
|
||||
n = strlen(keywords[m]) + 1;
|
||||
fwrite(&n,sizeof(int),1,fp);
|
||||
fwrite(keywords[m],sizeof(char),n,fp);
|
||||
styles[m]->write_restart_settings(fp);
|
||||
}
|
||||
}
|
||||
|
||||
@ -331,6 +332,7 @@ void ImproperHybrid::read_restart(FILE *fp)
|
||||
if (me == 0) fread(keywords[m],sizeof(char),n,fp);
|
||||
MPI_Bcast(keywords[m],n,MPI_CHAR,0,world);
|
||||
styles[m] = force->new_improper(keywords[m],0,dummy);
|
||||
styles[m]->read_restart_settings(fp);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user