git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7300 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2011-12-08 00:00:59 +00:00
parent b45c5af220
commit 4810127eba
6 changed files with 162 additions and 6 deletions

View File

@ -320,12 +320,12 @@ in the command's documentation.
<TR ALIGN="center"><TD ><A HREF = "improper_coeff.html">improper_coeff</A></TD><TD ><A HREF = "improper_style.html">improper_style</A></TD><TD ><A HREF = "include.html">include</A></TD><TD ><A HREF = "jump.html">jump</A></TD><TD ><A HREF = "kspace_modify.html">kspace_modify</A></TD><TD ><A HREF = "kspace_style.html">kspace_style</A></TD></TR>
<TR ALIGN="center"><TD ><A HREF = "label.html">label</A></TD><TD ><A HREF = "lattice.html">lattice</A></TD><TD ><A HREF = "log.html">log</A></TD><TD ><A HREF = "mass.html">mass</A></TD><TD ><A HREF = "minimize.html">minimize</A></TD><TD ><A HREF = "min_modify.html">min_modify</A></TD></TR>
<TR ALIGN="center"><TD ><A HREF = "min_style.html">min_style</A></TD><TD ><A HREF = "neb.html">neb</A></TD><TD ><A HREF = "neigh_modify.html">neigh_modify</A></TD><TD ><A HREF = "neighbor.html">neighbor</A></TD><TD ><A HREF = "newton.html">newton</A></TD><TD ><A HREF = "next.html">next</A></TD></TR>
<TR ALIGN="center"><TD ><A HREF = "package.html">package</A></TD><TD ><A HREF = "pair_coeff.html">pair_coeff</A></TD><TD ><A HREF = "pair_modify.html">pair_modify</A></TD><TD ><A HREF = "pair_style.html">pair_style</A></TD><TD ><A HREF = "pair_write.html">pair_write</A></TD><TD ><A HREF = "prd.html">prd</A></TD></TR>
<TR ALIGN="center"><TD ><A HREF = "print.html">print</A></TD><TD ><A HREF = "processors.html">processors</A></TD><TD ><A HREF = "read_data.html">read_data</A></TD><TD ><A HREF = "read_restart.html">read_restart</A></TD><TD ><A HREF = "region.html">region</A></TD><TD ><A HREF = "replicate.html">replicate</A></TD></TR>
<TR ALIGN="center"><TD ><A HREF = "reset_timestep.html">reset_timestep</A></TD><TD ><A HREF = "restart.html">restart</A></TD><TD ><A HREF = "run.html">run</A></TD><TD ><A HREF = "run_style.html">run_style</A></TD><TD ><A HREF = "set.html">set</A></TD><TD ><A HREF = "shell.html">shell</A></TD></TR>
<TR ALIGN="center"><TD ><A HREF = "special_bonds.html">special_bonds</A></TD><TD ><A HREF = "suffix.html">suffix</A></TD><TD ><A HREF = "tad.html">tad</A></TD><TD ><A HREF = "temper.html">temper</A></TD><TD ><A HREF = "thermo.html">thermo</A></TD><TD ><A HREF = "thermo_modify.html">thermo_modify</A></TD></TR>
<TR ALIGN="center"><TD ><A HREF = "thermo_style.html">thermo_style</A></TD><TD ><A HREF = "timestep.html">timestep</A></TD><TD ><A HREF = "uncompute.html">uncompute</A></TD><TD ><A HREF = "undump.html">undump</A></TD><TD ><A HREF = "unfix.html">unfix</A></TD><TD ><A HREF = "units.html">units</A></TD></TR>
<TR ALIGN="center"><TD ><A HREF = "variable.html">variable</A></TD><TD ><A HREF = "velocity.html">velocity</A></TD><TD ><A HREF = "write_restart.html">write_restart</A>
<TR ALIGN="center"><TD ><A HREF = "package.html">package</A></TD><TD ><A HREF = "pair_coeff.html">pair_coeff</A></TD><TD ><A HREF = "pair_modify.html">pair_modify</A></TD><TD ><A HREF = "pair_style.html">pair_style</A></TD><TD ><A HREF = "pair_write.html">pair_write</A></TD><TD ><A HREF = "partition.html">partition</A></TD></TR>
<TR ALIGN="center"><TD ><A HREF = "prd.html">prd</A></TD><TD ><A HREF = "print.html">print</A></TD><TD ><A HREF = "processors.html">processors</A></TD><TD ><A HREF = "read_data.html">read_data</A></TD><TD ><A HREF = "read_restart.html">read_restart</A></TD><TD ><A HREF = "region.html">region</A></TD></TR>
<TR ALIGN="center"><TD ><A HREF = "replicate.html">replicate</A></TD><TD ><A HREF = "reset_timestep.html">reset_timestep</A></TD><TD ><A HREF = "restart.html">restart</A></TD><TD ><A HREF = "run.html">run</A></TD><TD ><A HREF = "run_style.html">run_style</A></TD><TD ><A HREF = "set.html">set</A></TD></TR>
<TR ALIGN="center"><TD ><A HREF = "shell.html">shell</A></TD><TD ><A HREF = "special_bonds.html">special_bonds</A></TD><TD ><A HREF = "suffix.html">suffix</A></TD><TD ><A HREF = "tad.html">tad</A></TD><TD ><A HREF = "temper.html">temper</A></TD><TD ><A HREF = "thermo.html">thermo</A></TD></TR>
<TR ALIGN="center"><TD ><A HREF = "thermo_modify.html">thermo_modify</A></TD><TD ><A HREF = "thermo_style.html">thermo_style</A></TD><TD ><A HREF = "timestep.html">timestep</A></TD><TD ><A HREF = "uncompute.html">uncompute</A></TD><TD ><A HREF = "undump.html">undump</A></TD><TD ><A HREF = "unfix.html">unfix</A></TD></TR>
<TR ALIGN="center"><TD ><A HREF = "units.html">units</A></TD><TD ><A HREF = "variable.html">variable</A></TD><TD ><A HREF = "velocity.html">velocity</A></TD><TD ><A HREF = "write_restart.html">write_restart</A>
</TD></TR></TABLE></DIV>
<HR>

View File

@ -361,6 +361,7 @@ in the command's documentation.
"pair_modify"_pair_modify.html,
"pair_style"_pair_style.html,
"pair_write"_pair_write.html,
"partition"_partition.html,
"prd"_prd.html,
"print"_print.html,
"processors"_processors.html,

78
doc/partition.html Normal file
View File

@ -0,0 +1,78 @@
<HTML>
<CENTER><A HREF = "http://lammps.sandia.gov">LAMMPS WWW Site</A> - <A HREF = "Manual.html">LAMMPS Documentation</A> - <A HREF = "Section_commands.html#comm">LAMMPS Commands</A>
</CENTER>
<HR>
<H3>partition command
</H3>
<P><B>Syntax:</B>
</P>
<PRE>partition style Np command ...
</PRE>
<UL><LI>style = <I>yes</I> or <I>no</I>
<LI>Np = partition number (see asterisk form below)
<LI>command = any LAMMPS command
</UL>
<P><B>Examples:</B>
</P>
<PRE>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>
<P><B>Description:</B>
</P>
<P>This command invokes the specified command on a subset of the
partitions you have defined via the -partition command-line switch.
See <A HREF = "Section_start.html#start_6">this section</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 <A HREF = "variable.html">variables</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 <A HREF = "jump.html">jump</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 <I>style</I> and <I>Np</I> arguments.
</P>
<P>If the <I>style</I> is <I>yes</I>, the command will be invoked on any
partition which matches the Np argument. If the <I>style</I> is <I>no</I>
the command will be invoked on all the partitions which do not
match the Np argument.
</P>
<P>Partitions are numbered from 1 to N, where N is the number of
partitions specified by the <A HREF = "Section_start.html#start_6">-partition command-line
switch</A>.
</P>
<P>Np 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 N. A leading asterisk means all partitions from
1 to n (inclusive). A trailing asterisk means all partitions from n
to N (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 <A HREF = "processors.html">processors</A>
command lays out a 3d grid of processors in each of 2 partitions.
</P>
<P><B>Restrictions:</B> none
</P>
<P><B>Related commands:</B> none
</P>
<P><A HREF = "run_style.html">run_style verlet/split</A>
</P>
<P><B>Default:</B> none
</P>
</HTML>

73
doc/partition.txt Normal file
View File

@ -0,0 +1,73 @@
"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:]
partition style Np command ... :pre
style = {yes} or {no}
Np = partition number (see asterisk form below)
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
partitions you have defined via the -partition command-line switch.
See "this section"_Section_start.html#start_6 for an explanation of
the switch.
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
the partition(s) specified by the {style} and {Np} arguments.
If the {style} is {yes}, the command will be invoked on any
partition which matches the Np argument. If the {style} is {no}
the command will be invoked on all the partitions which do not
match the Np argument.
Partitions are numbered from 1 to N, where N is the number of
partitions specified by the "-partition command-line
switch"_Section_start.html#start_6.
Np 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 N. A leading asterisk means all partitions from
1 to n (inclusive). A trailing asterisk means all partitions from n
to N (inclusive). A middle asterisk means all partitions from m to n
(inclusive).
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
[Related commands:] none
"run_style verlet/split"_run_style.html
[Default:] none

View File

@ -110,6 +110,8 @@ connects the 2 partitions via the <I>part</I> keyword. LAMMPS cannot
easily check for this, but your simulation will likely hang in its
setup phase if this error has been made.
</P>
<HR>
<P><B>Restrictions:</B>
</P>
<P>This command cannot be used after the simulation box is defined by a

View File

@ -103,6 +103,8 @@ connects the 2 partitions via the {part} keyword. LAMMPS cannot
easily check for this, but your simulation will likely hang in its
setup phase if this error has been made.
:line
[Restrictions:]
This command cannot be used after the simulation box is defined by a