git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13601 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2015-07-15 21:29:44 +00:00
parent 062a3575b6
commit f7bc08d83d
22 changed files with 166 additions and 88 deletions

View File

@ -60,7 +60,9 @@ enum{VERSION,SMALLINT,TAGINT,BIGINT,
SPECIAL_LJ,SPECIAL_COUL,
MASS,PAIR,BOND,ANGLE,DIHEDRAL,IMPROPER,
MULTIPROC,MPIIO,PROCSPERFILE,PERPROC,
IMAGEINT,BOUNDMIN};
IMAGEINT,BOUNDMIN,TIMESTEP,
ATOM_ID,ATOM_MAP_STYLE,ATOM_MAP_USER,ATOM_SORTFREQ,ATOM_SORTBIN,
COMM_MODE,COMM_CUTOFF,COMM_VEL};
#define LB_FACTOR 1.1
@ -866,6 +868,27 @@ void ReadRestart::header(int incompatible)
read_int();
read_double_vec(3,&force->special_coul[1]);
} else if (flag == TIMESTEP) {
update->dt = read_double();
} else if (flag == ATOM_ID) {
atom->tag_enable = read_int();
} else if (flag == ATOM_MAP_STYLE) {
atom->map_style = read_int();
} else if (flag == ATOM_MAP_USER) {
atom->map_user = read_int();
} else if (flag == ATOM_SORTFREQ) {
atom->sortfreq = read_int();
} else if (flag == ATOM_SORTBIN) {
atom->userbinsize = read_double();
} else if (flag == COMM_MODE) {
comm->mode = read_int();
} else if (flag == COMM_CUTOFF) {
comm->cutghostuser = read_double();
} else if (flag == COMM_VEL) {
comm->ghost_velocity = read_int();
} else error->all(FLERR,"Invalid flag in header section of restart file");
flag = read_int();