diff --git a/doc/print.html b/doc/print.html index c9b67597df..dba7a59e83 100644 --- a/doc/print.html +++ b/doc/print.html @@ -13,24 +13,43 @@
Syntax:
-print str +print string keyword value:pre +
+
file value = filename + append value = filename + screen value = yes or no-
Examples:
-print "Done with equilibration" -print Vol=$v -print "The system volume is now $v" +print "Done with equilibration" file info.dat +print Vol=$v append info.dat screen no +print "The system volume is now $v" print 'The system volume is now $v'Description:
Print a text string to the screen and logfile. One line of output is -generated. If the string has white space in it (spaces, tabs, etc), -then you must enclose it in quotes so that it is treated as a single -argument. If variables are included in the string, they will be -evaluated and their current values printed. +generated. The text string must be a single argument, so +it should be enclosed in double quotes if it is more than one word. +If it contains variables, they will be evaluated and +their current values printed. +
+If the file or append keyword is used, a filename is specified to +which the output will be written. If file is +used, then the filename is overwritten if it already exists. If +append is used, then the filename is appended to if it already +exists, or created if it does not exist. +
+If the screen keyword is used, output to the screen and +logfile can be turned on or off as desired.
If you want the print command to be executed multiple times (with changing variable values), there are 3 options. First, consider using @@ -55,6 +74,8 @@ thermodynamic properties, global values calculated by a
-Default: none +
Default: +
+The option defaults are no file output, and screen = yes.