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

@ -1039,9 +1039,7 @@ void Input::region()
void Input::reset_timestep()
{
if (narg != 1) error->all("Illegal reset_timestep command");
update->ntimestep = atoi(arg[0]);
if (update->ntimestep < 0) error->all("Timestep must be >= 0");
update->reset_timestep(narg,arg);
}
/* ---------------------------------------------------------------------- */