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

Comparing trunk/src/parallel/ForceMatrixDecomposition.cpp (file contents):
Revision 2076 by gezelter, Sat Mar 7 21:41:51 2015 UTC vs.
Revision 2077 by gezelter, Mon Mar 9 17:10:26 2015 UTC

# Line 1508 | Line 1508 | namespace OpenMD {
1508          }
1509          
1510          // find xyz-indices of cell that cutoffGroup is in.
1511 <        whichCell.x() = nCells_.x() * scaled.x();
1512 <        whichCell.y() = nCells_.y() * scaled.y();
1513 <        whichCell.z() = nCells_.z() * scaled.z();
1511 >        whichCell.x() = int(nCells_.x() * scaled.x());
1512 >        whichCell.y() = int(nCells_.y() * scaled.y());
1513 >        whichCell.z() = int(nCells_.z() * scaled.z());
1514          
1515          for (vector<Vector3i>::iterator os = cellOffsets_.begin();
1516               os != cellOffsets_.end(); ++os) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines