must try suffixes when recreating pair hybrid substyles from a restart
This commit is contained in:
@ -742,7 +742,7 @@ void PairHybrid::read_restart(FILE *fp)
|
|||||||
keywords[m] = new char[n];
|
keywords[m] = new char[n];
|
||||||
if (me == 0) utils::sfread(FLERR,keywords[m],sizeof(char),n,fp,NULL,error);
|
if (me == 0) utils::sfread(FLERR,keywords[m],sizeof(char),n,fp,NULL,error);
|
||||||
MPI_Bcast(keywords[m],n,MPI_CHAR,0,world);
|
MPI_Bcast(keywords[m],n,MPI_CHAR,0,world);
|
||||||
styles[m] = force->new_pair(keywords[m],0,dummy);
|
styles[m] = force->new_pair(keywords[m],1,dummy);
|
||||||
styles[m]->read_restart_settings(fp);
|
styles[m]->read_restart_settings(fp);
|
||||||
// read back per style special settings, if present
|
// read back per style special settings, if present
|
||||||
special_lj[m] = special_coul[m] = NULL;
|
special_lj[m] = special_coul[m] = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user