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

This commit is contained in:
sjplimp
2007-10-22 23:26:34 +00:00
parent acf51990bf
commit 9c1c10e1c4
4 changed files with 24 additions and 4 deletions

View File

@ -79,6 +79,7 @@ Output::Output(LAMMPS *lmp) : Pointers(lmp)
restart = NULL;
restart1 = restart2 = NULL;
restart_every = 0;
last_restart = -1;
}
/* ----------------------------------------------------------------------
@ -357,6 +358,7 @@ void Output::create_restart(int narg, char **arg)
delete [] restart2;
restart = NULL;
restart1 = restart2 = NULL;
last_restart = -1;
restart_every = atoi(arg[0]);
if (restart_every == 0) {
@ -365,7 +367,6 @@ void Output::create_restart(int narg, char **arg)
}
restart = new WriteRestart(lmp);
last_restart = -1;
int n = strlen(arg[1]) + 3;
restart1 = new char[n];