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

This commit is contained in:
sjplimp
2015-09-11 14:49:37 +00:00
parent b1090f8689
commit 9effcca0df
8 changed files with 49 additions and 24 deletions

View File

@ -1079,8 +1079,9 @@ void Input::python()
void Input::quit()
{
if (narg) error->all(FLERR,"Illegal quit command");
error->done();
if (narg == 0) error->done(0); // 1 would be fully backwards compatible
if (narg == 1) error->done(force->inumeric(FLERR,arg[0]));
error->all(FLERR,"Illegal quit command");
}
/* ---------------------------------------------------------------------- */