write the name of a pair style to the restart even if it does not store data
This commit is contained in:
@ -61,7 +61,7 @@ enum{VERSION,SMALLINT,TAGINT,BIGINT,
|
||||
MULTIPROC,MPIIO,PROCSPERFILE,PERPROC,
|
||||
IMAGEINT,BOUNDMIN,TIMESTEP,
|
||||
ATOM_ID,ATOM_MAP_STYLE,ATOM_MAP_USER,ATOM_SORTFREQ,ATOM_SORTBIN,
|
||||
COMM_MODE,COMM_CUTOFF,COMM_VEL};
|
||||
COMM_MODE,COMM_CUTOFF,COMM_VEL,NO_PAIR};
|
||||
|
||||
enum{IGNORE,WARN,ERROR}; // same as thermo.cpp
|
||||
|
||||
@ -555,9 +555,13 @@ void WriteRestart::type_arrays()
|
||||
|
||||
void WriteRestart::force_fields()
|
||||
{
|
||||
if (force->pair && force->pair->restartinfo) {
|
||||
write_string(PAIR,force->pair_style);
|
||||
force->pair->write_restart(fp);
|
||||
if (force->pair) {
|
||||
if (force->pair->restartinfo) {
|
||||
write_string(PAIR,force->pair_style);
|
||||
force->pair->write_restart(fp);
|
||||
} else {
|
||||
write_string(NO_PAIR,force->pair_style);
|
||||
}
|
||||
}
|
||||
if (atom->avec->bonds_allow && force->bond) {
|
||||
write_string(BOND,force->bond_style);
|
||||
|
||||
Reference in New Issue
Block a user