forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8804 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
9316e35a98
commit
09836f0040
|
@ -105,7 +105,7 @@ void FixEvent::restore_event()
|
|||
x[i][1] = xevent[i][1];
|
||||
x[i][2] = xevent[i][2];
|
||||
|
||||
// Since xevent is unwrapped coordinate, need to
|
||||
// since xevent is unwrapped coordinate, need to
|
||||
// adjust image flags when remapping
|
||||
|
||||
image[i] = ((tagint) IMGMAX << IMG2BITS) |
|
||||
|
|
|
@ -839,10 +839,9 @@ void TAD::revert()
|
|||
x[i][0] = array_atom[i][0];
|
||||
x[i][1] = array_atom[i][1];
|
||||
x[i][2] = array_atom[i][2];
|
||||
image[i] =
|
||||
((int(array_atom[i][5]) + (tagint) IMGMAX & IMGMASK) << IMG2BITS) |
|
||||
((int(array_atom[i][4]) + (tagint) IMGMAX & IMGMASK) << IMGBITS) |
|
||||
(int(array_atom[i][3]) + IMGMAX & IMGMASK);
|
||||
image[i] = ((tagint) (int(array_atom[i][3]) + IMGMAX) & IMGMASK) |
|
||||
(((tagint) (int(array_atom[i][4]) + IMGMAX) & IMGMASK) << IMGBITS) |
|
||||
(((tagint) (int(array_atom[i][5]) + IMGMAX) & IMGMASK) << IMG2BITS);
|
||||
v[i][0] = -array_atom[i][6];
|
||||
v[i][1] = -array_atom[i][7];
|
||||
v[i][2] = -array_atom[i][8];
|
||||
|
|
Loading…
Reference in New Issue