2006-09-22 00:22:34 +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
|
|
|
|
|
|
|
|
processors command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
|
|
|
processors Px Py Pz :pre
|
|
|
|
|
|
|
|
Px,Py,Pz = # of processors in each dimension of a 3d grid :ul
|
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
2010-05-21 00:03:29 +08:00
|
|
|
processors 2 4 4
|
|
|
|
processors * * 5
|
|
|
|
processors * 1 10 :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
|
|
|
Specify how processors are mapped as a 3d logical grid to the global
|
2010-05-21 00:03:29 +08:00
|
|
|
simulation box, namely Px by Py by Pz.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2010-05-21 00:03:29 +08:00
|
|
|
Any of the Px, Py, Pz parameters can be specified with an asterisk
|
|
|
|
"*", which means LAMMPS will choose the number of processors in that
|
|
|
|
dimension. It will do this based on the size and shape of the global
|
|
|
|
simulation box so as to minimize the surface-to-volume ratio of each
|
|
|
|
processor's sub-domain.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
Since LAMMPS does not load-balance by changing the grid of 3d
|
2010-05-21 00:03:29 +08:00
|
|
|
processors on-the-fly, this command can be used to override the LAMMPS
|
|
|
|
default if it is known to be sub-optimal for a particular problem.
|
|
|
|
For example, a problem where the atom's extent will change
|
|
|
|
dramatically in a particular dimension over the course of the
|
|
|
|
simulation.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
The product of Px, Py, Pz must equal P, the total # of processors
|
2010-05-21 00:03:29 +08:00
|
|
|
LAMMPS is running on. For a "2d simulation"_dimension.html, Pz must
|
|
|
|
equal 1. If multiple partitions are being used then P is the number
|
|
|
|
of processors in this partition; see "this
|
2011-08-26 00:46:23 +08:00
|
|
|
section"_Section_start.html#start_6 for an explanation of the
|
|
|
|
-partition command-line switch.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2010-05-21 00:03:29 +08:00
|
|
|
Note that if you run on a large, prime number of processors P, then a
|
|
|
|
grid such as 1 x P x 1 will be required, which may incur extra
|
|
|
|
communication costs.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Restrictions:]
|
|
|
|
|
|
|
|
This command cannot be used after the simulation box is defined by a
|
|
|
|
"read_data"_read_data.html or "create_box"_create_box.html command.
|
|
|
|
It can be used before a restart file is read to change the 3d
|
|
|
|
processor grid from what is specified in the restart file.
|
|
|
|
|
|
|
|
[Related commands:] none
|
|
|
|
|
|
|
|
[Default:]
|
|
|
|
|
2010-05-21 00:03:29 +08:00
|
|
|
Px Py Pz = * * *
|