Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110026083
quit.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Apr 24, 09:54
Size
1 KB
Mime Type
text/html
Expires
Sat, Apr 26, 09:54 (2 d)
Engine
blob
Format
Raw Data
Handle
25750706
Attached To
rLAMMPS lammps
quit.html
View Options
<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>
Event Timeline
Log In to Comment