git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5504 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -42,7 +42,8 @@ using namespace LAMMPS_NS;
|
||||
|
||||
// same as read_restart.cpp and tools/restart2data.cpp
|
||||
|
||||
enum{VERSION,UNITS,NTIMESTEP,DIMENSION,NPROCS,PROCGRID_0,PROCGRID_1,PROCGRID_2,
|
||||
enum{VERSION,SMALLINT,TAGINT,BIGINT,
|
||||
UNITS,NTIMESTEP,DIMENSION,NPROCS,PROCGRID_0,PROCGRID_1,PROCGRID_2,
|
||||
NEWTON_PAIR,NEWTON_BOND,XPERIODIC,YPERIODIC,ZPERIODIC,
|
||||
BOUNDARY_00,BOUNDARY_01,BOUNDARY_10,BOUNDARY_11,BOUNDARY_20,BOUNDARY_21,
|
||||
ATOM_STYLE,NATOMS,NTYPES,
|
||||
@ -295,8 +296,13 @@ void WriteRestart::write(char *file)
|
||||
void WriteRestart::header()
|
||||
{
|
||||
write_char(VERSION,universe->version);
|
||||
write_int(SMALLINT,sizeof(smallint));
|
||||
write_int(TAGINT,sizeof(tagint));
|
||||
write_int(BIGINT,sizeof(bigint));
|
||||
write_char(UNITS,update->unit_style);
|
||||
write_int(NTIMESTEP,update->ntimestep);
|
||||
// placeholder until ntimestep is 8-byte
|
||||
bigint ntimestep = update->ntimestep;
|
||||
write_bigint(NTIMESTEP,ntimestep);
|
||||
write_int(DIMENSION,domain->dimension);
|
||||
write_int(NPROCS,nprocs);
|
||||
write_int(PROCGRID_0,comm->procgrid[0]);
|
||||
|
||||
Reference in New Issue
Block a user