diff --git a/doc/if.html b/doc/if.html index 2fb947674a..f0b5167c5a 100644 --- a/doc/if.html +++ b/doc/if.html @@ -13,15 +13,15 @@
Syntax:
-if value1 operator value2 then T1 T2 ... else E1 E2 ... +if value1 operator value2 then t1 t2 ... else e1 e2 ...
Examples:
@@ -41,14 +41,14 @@ executed, the variable(s) will be evaluated, which could calculate a user-defined formula that reflects the current state of the simulation. -If the result of the if test is TRUE, then one or more commands (T1, -T2, ..., TN) are executed. If the result of the if test is FALSE and +
If the result of the if test is TRUE, then one or more commands (t1, +t2, ..., tN) are executed. If the result of the if test is FALSE and no optional "else" argument is included, then the if command does nothing. If the result of the if test is FALSE and the optional -"else" argument is included, then one or more commands (E1, -E2, ..., En) are executed. +"else" argument is included, then one or more commands (e1, +e2, ..., eN) are executed.
-Each then or else command (T1,E1,etc) can be any valid LAMMPS input +
Each then or else command (t1, e1, etc) can be any valid LAMMPS input script command. Each command should be enclosed in quotes, so it will be treated as a single argument, as in the examples above.
diff --git a/doc/if.txt b/doc/if.txt index 7720cb8e94..ac7cbbc001 100644 --- a/doc/if.txt +++ b/doc/if.txt @@ -10,15 +10,15 @@ if command :h3 [Syntax:] -if value1 operator value2 then T1 T2 ... else E1 E2 ... :pre +if value1 operator value2 then t1 t2 ... else e1 e2 ... :pre value1 = 1st value operator = "<" or "<=" or ">" or ">=" or "==" or "!=" value2 = 2nd value then = required word -T1,T2,...,TN = one or more commands to execute if condition is met +t1,t2,...,tN = one or more LAMMPS commands to execute if condition is met, each enclosed in quotes else = optional argument -E1,E2,...,EN = one or more commands to execute if condition is not met (optional arguments) :ul +e1,e2,...,eN = one or more LAMMPS commands to execute if condition is not met, each enclosed in quotes (optional arguments) :ul [Examples:] @@ -38,14 +38,14 @@ executed, the variable(s) will be evaluated, which could calculate a user-defined formula that reflects the current state of the simulation. -If the result of the if test is TRUE, then one or more commands (T1, -T2, ..., TN) are executed. If the result of the if test is FALSE and +If the result of the if test is TRUE, then one or more commands (t1, +t2, ..., tN) are executed. If the result of the if test is FALSE and no optional "else" argument is included, then the if command does nothing. If the result of the if test is FALSE and the optional -"else" argument is included, then one or more commands (E1, -E2, ..., En) are executed. +"else" argument is included, then one or more commands (e1, +e2, ..., eN) are executed. -Each then or else command (T1,E1,etc) can be any valid LAMMPS input +Each then or else command (t1, e1, etc) can be any valid LAMMPS input script command. Each command should be enclosed in quotes, so it will be treated as a single argument, as in the examples above. diff --git a/doc/run.html b/doc/run.html index 251ff9b653..05524ee43b 100644 --- a/doc/run.html +++ b/doc/run.html @@ -28,10 +28,10 @@ N2 = timestep at which last run will end pre value = no or yes post value = no or yes - every values = M command1 command2 ... + every values = M c1 c2 ... M = break the run into M-timestep segments and invoke one or more commands between each segment - command1,command2,... = a single LAMMPS command, enclosed in quotes - command1 = NULL means no command will be invoked + c1,c2,...,cN = one or more LAMMPS commands, each enclosed in quotes + c1 = NULL means no command will be invoked @@ -114,14 +114,14 @@ this case. only a one-line summary timing is printed.The every keyword provides a means of breaking a LAMMPS run into a -series of shorter runs. Optionally, one or more LAMMPS commands will -be executed in between the short runs. If used, the every keyword -must be the last keyword, since it has a variable number of arguments. -Each of the trailing arguments is a single LAMMPS command, and each -command should be enclosed in quotes, so that the entire command will -be treated as a single argument. This will also prevent any variables -in the command from being evaluated until it is executed during the -run. +series of shorter runs. Optionally, one or more LAMMPS commands (c1, +c2, ..., cN) will be executed in between the short runs. If used, the +every keyword must be the last keyword, since it has a variable +number of arguments. Each of the trailing arguments is a single +LAMMPS command, and each command should be enclosed in quotes, so that +the entire command will be treated as a single argument. This will +also prevent any variables in the command from being evaluated until +it is executed multiple times during the run.
The every keyword is a means to avoid listing a long series of runs and interleaving commands in your input script. For example, a diff --git a/doc/run.txt b/doc/run.txt index 32c9942fb2..c80f308dc6 100644 --- a/doc/run.txt +++ b/doc/run.txt @@ -22,10 +22,10 @@ keyword = {upto} or {start} or {stop} or {pre} or {post} or {every} :l N2 = timestep at which last run will end {pre} value = {no} or {yes} {post} value = {no} or {yes} - {every} values = M command1 command2 ... + {every} values = M c1 c2 ... M = break the run into M-timestep segments and invoke one or more commands between each segment - command1,command2,... = a single LAMMPS command, enclosed in quotes - command1 = NULL means no command will be invoked :pre + c1,c2,...,cN = one or more LAMMPS commands, each enclosed in quotes + c1 = NULL means no command will be invoked :pre :ule [Examples:] @@ -107,14 +107,14 @@ If {post} is specified as "no", the full timing summary is skipped; only a one-line summary timing is printed. The {every} keyword provides a means of breaking a LAMMPS run into a -series of shorter runs. Optionally, one or more LAMMPS commands will -be executed in between the short runs. If used, the {every} keyword -must be the last keyword, since it has a variable number of arguments. -Each of the trailing arguments is a single LAMMPS command, and each -command should be enclosed in quotes, so that the entire command will -be treated as a single argument. This will also prevent any variables -in the command from being evaluated until it is executed during the -run. +series of shorter runs. Optionally, one or more LAMMPS commands (c1, +c2, ..., cN) will be executed in between the short runs. If used, the +{every} keyword must be the last keyword, since it has a variable +number of arguments. Each of the trailing arguments is a single +LAMMPS command, and each command should be enclosed in quotes, so that +the entire command will be treated as a single argument. This will +also prevent any variables in the command from being evaluated until +it is executed multiple times during the run. The {every} keyword is a means to avoid listing a long series of runs and interleaving commands in your input script. For example, a