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 1782 by gezelter, Wed Aug 22 02:28:28 2012 UTC vs.
Revision 1790 by gezelter, Thu Aug 30 17:18:22 2012 UTC

# Line 79 | Line 79 | namespace OpenMD {
79    }
80  
81  
82 <  void GofXyz::initalizeHistogram() {
82 >  void GofXyz::initializeHistogram() {
83      //calculate the center of mass of the molecule of selected stuntdouble in selection1
84  
85      if (!evaluator3_.isDynamic()) {
# 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