2011-12-08 08:00:59 +08:00
|
|
|
"LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
|
|
|
|
|
|
|
|
:link(lws,http://lammps.sandia.gov)
|
|
|
|
:link(ld,Manual.html)
|
|
|
|
:link(lc,Section_commands.html#comm)
|
|
|
|
|
|
|
|
:line
|
|
|
|
|
|
|
|
partition command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
2011-12-15 00:33:36 +08:00
|
|
|
partition style N command ... :pre
|
2011-12-08 08:00:59 +08:00
|
|
|
|
|
|
|
style = {yes} or {no}
|
2011-12-15 00:33:36 +08:00
|
|
|
N = partition number (see asterisk form below)
|
2011-12-08 08:00:59 +08:00
|
|
|
command = any LAMMPS command :ul
|
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
|
|
|
partition yes 1 processors 4 10 6
|
|
|
|
partition no 5 print "Active partition"
|
|
|
|
partition yes *5 fix all nve
|
|
|
|
partition yes 6* fix all nvt temp 1.0 1.0 0.1 :pre
|
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
|
|
|
This command invokes the specified command on a subset of the
|
2011-12-09 06:50:07 +08:00
|
|
|
partitions of processors you have defined via the -partition
|
2012-01-28 07:39:14 +08:00
|
|
|
command-line switch. See "Section_start 6"_Section_start.html#start_7
|
2011-12-09 06:50:07 +08:00
|
|
|
for an explanation of the switch.
|
2011-12-08 08:00:59 +08:00
|
|
|
|
|
|
|
Normally, every input script command in your script is invoked by
|
|
|
|
every partition. This behavior can be modified by defining world- or
|
|
|
|
universe-style "variables"_variable.html 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 "jump"_jump.html command.
|
|
|
|
|
|
|
|
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
|
2011-12-15 00:33:36 +08:00
|
|
|
the partition(s) specified by the {style} and {N} arguments.
|
2011-12-08 08:00:59 +08:00
|
|
|
|
2011-12-15 00:33:36 +08:00
|
|
|
If the {style} is {yes}, the command will be invoked on any partition
|
|
|
|
which matches the {N} argument. If the {style} is {no} the command
|
|
|
|
will be invoked on all the partitions which do not match the Np
|
|
|
|
argument.
|
2011-12-08 08:00:59 +08:00
|
|
|
|
2011-12-15 00:33:36 +08:00
|
|
|
Partitions are numbered from 1 to Np, where Np is the number of
|
2011-12-08 08:00:59 +08:00
|
|
|
partitions specified by the "-partition command-line
|
2012-01-28 07:39:14 +08:00
|
|
|
switch"_Section_start.html#start_7.
|
2011-12-08 08:00:59 +08:00
|
|
|
|
2011-12-15 00:33:36 +08:00
|
|
|
{N} 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 "*n" or "n*" 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).
|
2011-12-08 08:00:59 +08:00
|
|
|
|
|
|
|
This command can be useful for the "run_style verlet/split" command
|
|
|
|
which imposed requirements on how the "processors"_processors.html
|
|
|
|
command lays out a 3d grid of processors in each of 2 partitions.
|
|
|
|
|
|
|
|
[Restrictions:] none
|
|
|
|
|
2011-12-22 23:33:47 +08:00
|
|
|
[Related commands:]
|
2011-12-08 08:00:59 +08:00
|
|
|
|
|
|
|
"run_style verlet/split"_run_style.html
|
|
|
|
|
|
|
|
[Default:] none
|