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

This commit is contained in:
sjplimp 2012-01-28 00:08:24 +00:00
parent 0ddb9dee57
commit 04044a5f79
4 changed files with 12 additions and 1 deletions

View File

@ -135,6 +135,7 @@ void Error::message(const char *file, int line, const char *str, int logflag)
} }
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------
shutdown LAMMPS
called by all procs in one world called by all procs in one world
close all output, screen, and log files in world close all output, screen, and log files in world
no abort, so insure all procs in world call, else will hang no abort, so insure all procs in world call, else will hang

View File

@ -420,6 +420,7 @@ int Input::execute_command()
else if (!strcmp(command,"next")) next_command(); else if (!strcmp(command,"next")) next_command();
else if (!strcmp(command,"partition")) partition(); else if (!strcmp(command,"partition")) partition();
else if (!strcmp(command,"print")) print(); else if (!strcmp(command,"print")) print();
else if (!strcmp(command,"quit")) quit();
else if (!strcmp(command,"shell")) shell(); else if (!strcmp(command,"shell")) shell();
else if (!strcmp(command,"variable")) variable_command(); else if (!strcmp(command,"variable")) variable_command();
@ -792,6 +793,14 @@ void Input::print()
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
void Input::quit()
{
if (narg) error->all(FLERR,"Illegal quit command");
error->done();
}
/* ---------------------------------------------------------------------- */
void Input::shell() void Input::shell()
{ {
if (narg < 1) error->all(FLERR,"Illegal shell command"); if (narg < 1) error->all(FLERR,"Illegal shell command");

View File

@ -59,6 +59,7 @@ class Input : protected Pointers {
void next_command(); void next_command();
void partition(); void partition();
void print(); void print();
void quit();
void shell(); void shell();
void variable_command(); void variable_command();

View File

@ -404,7 +404,7 @@ LAMMPS::LAMMPS(int narg, char **arg, MPI_Comm communicator)
create(); create();
post_create(); post_create();
// if helpflag set, print help and exit // if helpflag set, print help and quit
if (helpflag) { if (helpflag) {
if (universe->me == 0) print_styles(); if (universe->me == 0) print_styles();