add option to read_dump that prevents resetting the timestep
This commit is contained in:
@ -121,7 +121,7 @@ void ReadDump::command(int narg, char **arg)
|
||||
|
||||
// reset timestep to nstep
|
||||
|
||||
update->reset_timestep(nstep, true);
|
||||
if (timestepflag) update->reset_timestep(nstep, true);
|
||||
|
||||
// counters
|
||||
|
||||
@ -1202,6 +1202,7 @@ int ReadDump::fields_and_keywords(int narg, char **arg)
|
||||
|
||||
multiproc_nfile = 0;
|
||||
boxflag = 1;
|
||||
timestepflag = 1;
|
||||
replaceflag = 1;
|
||||
purgeflag = 0;
|
||||
trimflag = 0;
|
||||
@ -1219,6 +1220,10 @@ int ReadDump::fields_and_keywords(int narg, char **arg)
|
||||
if (iarg+2 > narg) error->all(FLERR,"Illegal read_dump command");
|
||||
boxflag = utils::logical(FLERR,arg[iarg+1],false,lmp);
|
||||
iarg += 2;
|
||||
} else if (strcmp(arg[iarg],"timestep") == 0) {
|
||||
if (iarg+2 > narg) error->all(FLERR,"Illegal read_dump command");
|
||||
timestepflag = utils::logical(FLERR,arg[iarg+1],false,lmp);
|
||||
iarg += 2;
|
||||
} else if (strcmp(arg[iarg],"replace") == 0) {
|
||||
if (iarg+2 > narg) error->all(FLERR,"Illegal read_dump command");
|
||||
replaceflag = utils::logical(FLERR,arg[iarg+1],false,lmp);
|
||||
|
||||
Reference in New Issue
Block a user