ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/parallel/ForceMatrixDecomposition.cpp
(Generate patch)

Comparing branches/development/src/parallel/ForceMatrixDecomposition.cpp (file contents):
Revision 1770 by gezelter, Fri Jul 6 22:01:58 2012 UTC vs.
Revision 1771 by gezelter, Fri Jul 27 17:34:10 2012 UTC

# Line 1389 | Line 1389 | namespace OpenMD {
1389          for (int j = 0; j < 3; j++) {
1390            scaled[j] -= roundMe(scaled[j]);
1391            scaled[j] += 0.5;
1392 +          // Handle the special case when an object is exactly on the
1393 +          // boundary (a scaled coordinate of 1.0 is the same as
1394 +          // scaled coordinate of 0.0)
1395 +          if (scaled[j] >= 1.0) scaled[j] -= 1.0;
1396          }
1397          
1398          // find xyz-indices of cell that cutoffGroup is in.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines