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

This commit is contained in:
sjplimp
2011-12-22 15:15:29 +00:00
parent 9921d20788
commit 80101f0754
7 changed files with 67 additions and 45 deletions

View File

@ -1327,7 +1327,9 @@ void Input::suffix()
void Input::thermo()
{
if (narg != 1) error->all(FLERR,"Illegal thermo command");
output->thermo_every = atoi(arg[0]);
int n = atoi(arg[0]);
if (n < 0) error->all(FLERR,"Illegal thermo command");
output->thermo_every = n;
}
/* ---------------------------------------------------------------------- */