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

Comparing trunk/src/applications/staticProps/GofXyz.cpp (file contents):
Revision 1785 by jmichalk, Wed Aug 22 18:43:27 2012 UTC vs.
Revision 1790 by gezelter, Thu Aug 30 17:18:22 2012 UTC

# Line 140 | Line 140 | namespace OpenMD {
140      
141      Vector3d newR12 = i->second * r12;
142      // x, y and z's possible values range -halfLen_ to halfLen_
143 <    int xbin = (newR12.x() + halfLen_) / deltaR_;
144 <    int ybin = (newR12.y() + halfLen_) / deltaR_;
145 <    int zbin = (newR12.z() + halfLen_) / deltaR_;
143 >    int xbin = int((newR12.x() + halfLen_) / deltaR_);
144 >    int ybin = int((newR12.y() + halfLen_) / deltaR_);
145 >    int zbin = int((newR12.z() + halfLen_) / deltaR_);
146  
147      if (xbin < nRBins_ && xbin >=0 &&
148          ybin < nRBins_ && ybin >= 0 &&

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines