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 1931 by gezelter, Mon Aug 19 19:20:32 2013 UTC vs.
Revision 1939 by gezelter, Thu Oct 31 18:18:57 2013 UTC

# Line 1392 | Line 1392 | namespace OpenMD {
1392      Vector3d boxY = box.getColumn(1);
1393      Vector3d boxZ = box.getColumn(2);
1394      
1395 <    nCells_.x() = (int) ( boxX.length() )/ rList_;
1396 <    nCells_.y() = (int) ( boxY.length() )/ rList_;
1397 <    nCells_.z() = (int) ( boxZ.length() )/ rList_;
1395 >    nCells_.x() = int( boxX.length() / rList_ );
1396 >    nCells_.y() = int( boxY.length() / rList_ );
1397 >    nCells_.z() = int( boxZ.length() / rList_ );
1398      
1399      // handle small boxes where the cell offsets can end up repeating cells
1400      
# Line 1490 | Line 1490 | namespace OpenMD {
1490          }
1491          
1492          // find xyz-indices of cell that cutoffGroup is in.
1493 <        whichCell.x() = nCells_.x() * scaled.x();
1494 <        whichCell.y() = nCells_.y() * scaled.y();
1495 <        whichCell.z() = nCells_.z() * scaled.z();
1493 >        whichCell.x() = int(nCells_.x() * scaled.x());
1494 >        whichCell.y() = int(nCells_.y() * scaled.y());
1495 >        whichCell.z() = int(nCells_.z() * scaled.z());
1496          
1497          // find single index of this cell:
1498          cellIndex = Vlinear(whichCell, nCells_);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines