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 1787 by gezelter, Wed Aug 29 18:13:11 2012 UTC vs.
Revision 1832 by gezelter, Thu Jan 10 18:15:02 2013 UTC

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