Files
lammps/doc/doc2/quit.html
sjplimp 4035556ffa ''
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14026 f3b2605a-c512-4ea7-a41b-209d697bcdaa
2015-09-11 14:50:01 +00:00

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>