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

Comparing trunk/src/applications/staticProps/GofZ.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 64 | Line 64 | namespace OpenMD {
64      std::fill(avgGofz_.begin(), avgGofz_.end(), 0.0);    
65    }
66  
67 <  void GofZ::initalizeHistogram() {
67 >  void GofZ::initializeHistogram() {
68      std::fill(histogram_.begin(), histogram_.end(), 0);
69    }
70  
# Line 108 | Line 108 | namespace OpenMD {
108  
109      if (xydist < rC_) {
110        thisZ = abs(r12.z());
111 <      int whichBin = thisZ / deltaZ_;
111 >      int whichBin = int(thisZ / deltaZ_);
112        histogram_[whichBin] += 2;
113      }
114    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines