forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@530 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
a4bdfdfac1
commit
95af0d5a2a
|
@ -329,7 +329,7 @@ void Output::create_thermo(int narg, char **arg)
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
setup restart capability
|
setup restart capability
|
||||||
if only one filename, append ".*" if not "*" in filename
|
if only one filename and it contains no "*", then append ".*"
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
|
|
||||||
void Output::create_restart(int narg, char **arg)
|
void Output::create_restart(int narg, char **arg)
|
||||||
|
@ -339,6 +339,8 @@ void Output::create_restart(int narg, char **arg)
|
||||||
if (restart) delete restart;
|
if (restart) delete restart;
|
||||||
delete [] restart1;
|
delete [] restart1;
|
||||||
delete [] restart2;
|
delete [] restart2;
|
||||||
|
restart = NULL;
|
||||||
|
restart1 = restart2 = NULL;
|
||||||
|
|
||||||
restart_every = atoi(arg[0]);
|
restart_every = atoi(arg[0]);
|
||||||
if (restart_every == 0) {
|
if (restart_every == 0) {
|
||||||
|
|
Loading…
Reference in New Issue