Commit 40df8fdf authored by sjplimp's avatar sjplimp
Browse files

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1248 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent c080512e
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
@@ -13,21 +13,21 @@
</H3>
<P><B>Syntax:</B>
</P>
<PRE>print args 
<PRE>print string 
</PRE>
<UL><LI>args = a line of text and variables names to print out 
<UL><LI>string = text string to print with optional variable names 
</UL>
<P><B>Examples:</B>
</P>
<PRE>print The system volume is now $v 
<PRE>print "Done with equilibration"
print "The system volume is now $v" 
</PRE>
<P><B>Description:</B>
</P>
<P>Print the list of arguments as a line of text to the screen and/or
logfile.  If variables are included in the arguments, they will be
evaluated and their current values printed.  Note that if variables
are included, the print string should not be enclosed in double
quotes, else it will prevent the variables from being evaluated.
<P>Print a text string to the screen and logfile.  The text string must
be a single argument, so it should be enclosed in double quotes if it
is more than one word.  If variables are included in the string, they
will be evaluated and their current values printed.
</P>
<P>If you want the print command to be executed multiple times (with
changing variable values), there are 3 options.  First, consider using
@@ -39,9 +39,11 @@ input script that is looped over (see the <A HREF = "jump.html">jump</A> command
</P>
<P>See the <A HREF = "variable.html">variable</A> command for a description of <I>equal</I>
style variables which are typically the most useful ones to use with
the print command.  Equal-style variables can calculate complex
formulas involving atom and group properties, mathematical operations,
other variables, etc.
the print command.  Equal-style variables can calculate formulas
involving mathematical operations, atom properties, group properties,
thermodyanimc properties, global values calculated by a
<A HREF = "compute.html">compute</A> or <A HREF = "fix.html">fix</A>, or references to other
<A HREF = "variable.html">variables</A>.
</P>
<P><B>Restrictions:</B> none
</P>
+13 −11
Original line number Diff line number Diff line
@@ -10,21 +10,21 @@ print command :h3

[Syntax:]

print args :pre
print string :pre

args = a line of text and variables names to print out :ul
string = text string to print with optional variable names :ul

[Examples:]

print The system volume is now $v :pre
print "Done with equilibration"
print "The system volume is now $v" :pre

[Description:]

Print the list of arguments as a line of text to the screen and/or
logfile.  If variables are included in the arguments, they will be
evaluated and their current values printed.  Note that if variables
are included, the print string should not be enclosed in double
quotes, else it will prevent the variables from being evaluated.
Print a text string to the screen and logfile.  The text string must
be a single argument, so it should be enclosed in double quotes if it
is more than one word.  If variables are included in the string, they
will be evaluated and their current values printed.

If you want the print command to be executed multiple times (with
changing variable values), there are 3 options.  First, consider using
@@ -36,9 +36,11 @@ input script that is looped over (see the "jump"_jump.html command).

See the "variable"_variable.html command for a description of {equal}
style variables which are typically the most useful ones to use with
the print command.  Equal-style variables can calculate complex
formulas involving atom and group properties, mathematical operations,
other variables, etc.
the print command.  Equal-style variables can calculate formulas
involving mathematical operations, atom properties, group properties,
thermodyanimc properties, global values calculated by a
"compute"_compute.html or "fix"_fix.html, or references to other
"variables"_variable.html.

[Restrictions:] none