<li>N = partition number (see asterisk form below)</li>
<li>command = any LAMMPS command</li>
</ul>
</div>
<divclass="section"id="examples">
<h2>Examples</h2>
<preclass="literal-block">
partition yes 1 processors 4 10 6
partition no 5 print "Active partition"
partition yes <em>5 fix all nve
partition yes 6</em> fix all nvt temp 1.0 1.0 0.1
</pre>
</div>
<divclass="section"id="description">
<h2>Description</h2>
<p>This command invokes the specified command on a subset of the
partitions of processors you have defined via the -partition
command-line switch. See <aclass="reference internal"href="Section_start.html#start-7"><spanclass="std std-ref">Section_start 6</span></a>
for an explanation of the switch.</p>
<p>Normally, every input script command in your script is invoked by
every partition. This behavior can be modified by defining world- or
universe-style <aclass="reference internal"href="variable.html"><spanclass="doc">variables</span></a> that have different values
for each partition. This mechanism can be used to cause your script
to jump to different input script files on different partitions, if
such a variable is used in a <aclass="reference internal"href="jump.html"><spanclass="doc">jump</span></a> command.</p>
<p>The “partition” command is another mechanism for having as input
script operate differently on different partitions. It is basically a
prefix on any LAMMPS command. The commmand will only be invoked on
the partition(s) specified by the <em>style</em> and <em>N</em> arguments.</p>
<p>If the <em>style</em> is <em>yes</em>, the command will be invoked on any partition
which matches the <em>N</em> argument. If the <em>style</em> is <em>no</em> the command
will be invoked on all the partitions which do not match the Np
argument.</p>
<p>Partitions are numbered from 1 to Np, where Np is the number of
partitions specified by the <aclass="reference internal"href="Section_start.html#start-7"><spanclass="std std-ref">-partition command-line switch</span></a>.</p>
<p><em>N</em> can be specified in one of two ways. An explicit numeric value
can be used, as in the 1st example above. Or a wild-card asterisk can
be used to span a range of partition numbers. This takes the form “*”
or “<em>n” or “n</em>” or “m*n”. An asterisk with no numeric values means
all partitions from 1 to Np. A leading asterisk means all partitions
from 1 to n (inclusive). A trailing asterisk means all partitions
from n to Np (inclusive). A middle asterisk means all partitions from
m to n (inclusive).</p>
<p>This command can be useful for the “run_style verlet/split” command
which imposed requirements on how the <aclass="reference internal"href="processors.html"><spanclass="doc">processors</span></a>
command lays out a 3d grid of processors in each of 2 partitions.</p>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.