2015-07-30 22:38:28 +08:00
|
|
|
<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>
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-30 22:38:28 +08:00
|
|
|
<HR>
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2015-07-30 22:38:28 +08:00
|
|
|
<H3>log command
|
|
|
|
</H3>
|
|
|
|
<P><B>Syntax:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>log file keyword
|
|
|
|
</PRE>
|
|
|
|
<UL><LI>file = name of new logfile
|
|
|
|
<LI>keyword = <I>append</I> if output should be appended to logfile (optional)
|
|
|
|
</UL>
|
|
|
|
<P><B>Examples:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>log log.equil
|
|
|
|
log log.equil append
|
|
|
|
</PRE>
|
|
|
|
<P><B>Description:</B>
|
|
|
|
</P>
|
|
|
|
<P>This command closes the current LAMMPS log file, opens a new file with
|
2006-09-22 00:22:34 +08:00
|
|
|
the specified name, and begins logging information to it. If the
|
2015-07-30 22:38:28 +08:00
|
|
|
specified file name is <I>none</I>, then no new log file is opened. If the
|
|
|
|
optional keyword <I>append</I> is specified, then output will be appended
|
|
|
|
to an existing log file, instead of overwriting it.
|
|
|
|
</P>
|
|
|
|
<P>If multiple processor partitions are being used, the file name should
|
2006-09-22 00:22:34 +08:00
|
|
|
be a variable, so that different processors do not attempt to write to
|
2015-07-30 22:38:28 +08:00
|
|
|
the same log file.
|
|
|
|
</P>
|
|
|
|
<P>The file "log.lammps" is the default log file for a LAMMPS run. The
|
2006-09-22 00:22:34 +08:00
|
|
|
name of the initial log file can also be set by the command-line
|
2015-07-30 22:38:28 +08:00
|
|
|
switch -log. See <A HREF = "Section_start.html#start_7">Section_start 6</A> for
|
|
|
|
details.
|
|
|
|
</P>
|
|
|
|
<P><B>Restrictions:</B> none
|
|
|
|
</P>
|
|
|
|
<P><B>Related commands:</B> none
|
|
|
|
</P>
|
|
|
|
<P><B>Default:</B>
|
|
|
|
</P>
|
|
|
|
<P>The default LAMMPS log file is named log.lammps
|
|
|
|
</P>
|
|
|
|
</HTML>
|