mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10512 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
795a7c0c38
commit
2a8b892cc9
|
@ -206,8 +206,8 @@ The code for these classes can use the per-atom properties defined by
|
|||
fix property/atom. The Atom class has a find_custom() method that is
|
||||
useful in this context:
|
||||
</P>
|
||||
<P>int index = find_custom(char *name, int &flag);
|
||||
</P>
|
||||
<PRE>int index = atom->find_custom(char *name, int &flag);
|
||||
</PRE>
|
||||
<P>The "name" of a custom attribute, as specified in the <A HREF = "fix_property_atom.html">fix
|
||||
property/atom</A> command, is checked to verify
|
||||
that it exists and its index is returned. The method also sets flag =
|
||||
|
@ -215,9 +215,9 @@ that it exists and its index is returned. The method also sets flag =
|
|||
The vector of values associated with the attribute can then be
|
||||
accessed using the returned index as
|
||||
</P>
|
||||
<P>int *ivector = atom->ivector<B>index</B>;
|
||||
double *dvector = atom->dvector<B>index</B>;
|
||||
</P>
|
||||
<PRE>int *ivector = atom->ivector[index];
|
||||
double *dvector = atom->dvector[index];
|
||||
</PRE>
|
||||
<P>Ivector or dvector are vectors of length Nlocal = # of owned atoms,
|
||||
which store the attributes of individual atoms.
|
||||
</P>
|
||||
|
|
|
@ -202,7 +202,7 @@ The code for these classes can use the per-atom properties defined by
|
|||
fix property/atom. The Atom class has a find_custom() method that is
|
||||
useful in this context:
|
||||
|
||||
int index = find_custom(char *name, int &flag);
|
||||
int index = atom->find_custom(char *name, int &flag); :pre
|
||||
|
||||
The "name" of a custom attribute, as specified in the "fix
|
||||
property/atom"_fix_property_atom.html command, is checked to verify
|
||||
|
@ -211,8 +211,8 @@ that it exists and its index is returned. The method also sets flag =
|
|||
The vector of values associated with the attribute can then be
|
||||
accessed using the returned index as
|
||||
|
||||
int *ivector = atom->ivector[index];
|
||||
double *dvector = atom->dvector[index];
|
||||
int *ivector = atom->ivector\[index\];
|
||||
double *dvector = atom->dvector\[index\]; :pre
|
||||
|
||||
Ivector or dvector are vectors of length Nlocal = # of owned atoms,
|
||||
which store the attributes of individual atoms.
|
||||
|
|
|
@ -197,6 +197,11 @@ triclinic representations.
|
|||
listed regions combined. The <I>intersect</I> style creates a region
|
||||
consisting of the volume that is common to all the listed regions.
|
||||
</P>
|
||||
<P>IMPORTANT NOTE: The <I>union</I> and <I>intersect</I> regions operate by
|
||||
invoking methods from their list of sub-regions. Thus you cannot
|
||||
delete the sub-regions after defining the <I>union</I> or <I>intersection</I>
|
||||
region.
|
||||
</P>
|
||||
<HR>
|
||||
|
||||
<P>The <I>side</I> keyword determines whether the region is considered to be
|
||||
|
|
|
@ -188,6 +188,11 @@ The {union} style creates a region consisting of the volume of all the
|
|||
listed regions combined. The {intersect} style creates a region
|
||||
consisting of the volume that is common to all the listed regions.
|
||||
|
||||
IMPORTANT NOTE: The {union} and {intersect} regions operate by
|
||||
invoking methods from their list of sub-regions. Thus you cannot
|
||||
delete the sub-regions after defining the {union} or {intersection}
|
||||
region.
|
||||
|
||||
:line
|
||||
|
||||
The {side} keyword determines whether the region is considered to be
|
||||
|
|
Loading…
Reference in New Issue