| # | 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) { | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |