git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10891 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
14
src/set.cpp
14
src/set.cpp
@ -674,6 +674,20 @@ void Set::set(int keyword)
|
||||
atom->angmom[i][2] = zvalue;
|
||||
}
|
||||
|
||||
// reset any or all of 3 image flags
|
||||
|
||||
else if (keyword == IMAGE) {
|
||||
int xbox = (atom->image[i] & IMGMASK) - IMGMAX;
|
||||
int ybox = (atom->image[i] >> IMGBITS & IMGMASK) - IMGMAX;
|
||||
int zbox = (atom->image[i] >> IMG2BITS) - IMGMAX;
|
||||
if (ximageflag) xbox = ximage;
|
||||
if (yimageflag) ybox = yimage;
|
||||
if (zimageflag) zbox = zimage;
|
||||
atom->image[i] = ((tagint) (xbox + IMGMAX) & IMGMASK) |
|
||||
(((tagint) (ybox + IMGMAX) & IMGMASK) << IMGBITS) |
|
||||
(((tagint) (zbox + IMGMAX) & IMGMASK) << IMG2BITS);
|
||||
}
|
||||
|
||||
// set value for custom integer or double vector
|
||||
|
||||
else if (keyword == INAME) {
|
||||
|
||||
Reference in New Issue
Block a user