ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/applications/staticProps/GofXyz.cpp
(Generate patch)

Comparing branches/development/src/applications/staticProps/GofXyz.cpp (file contents):
Revision 1831 by gezelter, Thu Sep 6 19:44:06 2012 UTC vs.
Revision 1832 by gezelter, Thu Jan 10 18:15:02 2013 UTC

# Line 151 | Line 151 | namespace OpenMD {
151      
152      Vector3d newR12 = i->second * r12;
153      // x, y and z's possible values range -halfLen_ to halfLen_
154 <    int xbin = (newR12.x() + halfLen_) / deltaR_;
155 <    int ybin = (newR12.y() + halfLen_) / deltaR_;
156 <    int zbin = (newR12.z() + halfLen_) / deltaR_;
154 >    int xbin = int( (newR12.x() + halfLen_) / deltaR_);
155 >    int ybin = int( (newR12.y() + halfLen_) / deltaR_);
156 >    int zbin = int( (newR12.z() + halfLen_) / deltaR_);
157  
158      if (xbin < nRBins_ && xbin >=0 &&
159          ybin < nRBins_ && ybin >= 0 &&

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines