git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7383 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user