mirror of https://github.com/lammps/lammps.git
52 lines
1.2 KiB
HTML
52 lines
1.2 KiB
HTML
<HTML>
|
|
<CENTER><A HREF = "http://lammps.sandia.gov">LAMMPS WWW Site</A> - <A HREF = "Manual.html">LAMMPS Documentation</A> - <A HREF = "Section_commands.html#comm">LAMMPS Commands</A>
|
|
</CENTER>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<HR>
|
|
|
|
<H3>quit command
|
|
</H3>
|
|
<P><B>Syntax:</B>
|
|
</P>
|
|
<PRE>quit status
|
|
</PRE>
|
|
<P>status = numerical exit status (optional)
|
|
</P>
|
|
<P><B>Examples:</B>
|
|
</P>
|
|
<P>quit
|
|
if "$n > 10000" then "quit 1":pre
|
|
</P>
|
|
<P><B>Description:</B>
|
|
</P>
|
|
<P>This command causes LAMMPS to exit, after shutting down all output
|
|
cleanly.
|
|
</P>
|
|
<P>It can be used as a debug statement in an input script, to terminate
|
|
the script at some intermediate point.
|
|
</P>
|
|
<P>It can also be used as an invoked command inside the "then" or "else"
|
|
portion of an <A HREF = "if.html">if</A> command.
|
|
</P>
|
|
<P>The optional status argument is an integer which signals the return
|
|
status to a program calling LAMMPS. A return status of 0 usually
|
|
indicates success. A status != 0 is failure, where the specified
|
|
value can be used to distinguish the kind of error, e.g. where in the
|
|
input script the quit was invoked. If not specified, a status of 0 is
|
|
returned.
|
|
</P>
|
|
<P><B>Restrictions:</B> none
|
|
</P>
|
|
<P><B>Related commands:</B>
|
|
</P>
|
|
<P><A HREF = "if.html">if</A>
|
|
</P>
|
|
<P><B>Default:</B> none
|
|
</P>
|
|
</HTML>
|