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

This commit is contained in:
sjplimp
2012-06-08 16:00:32 +00:00
parent f84a324b48
commit 7a2e00bbf1
10 changed files with 117 additions and 81 deletions

View File

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