--- trunk/src/applications/staticProps/GofRZ.cpp 2012/08/22 02:28:28 1782 +++ trunk/src/applications/staticProps/GofRZ.cpp 2012/08/30 17:18:22 1790 @@ -70,7 +70,7 @@ namespace OpenMD { } } - void GofRZ::initalizeHistogram() { + void GofRZ::initializeHistogram() { npairs_ = 0; for (unsigned int i = 0; i < histogram_.size(); ++i){ std::fill(histogram_[i].begin(), histogram_[i].end(), 0); @@ -109,14 +109,14 @@ namespace OpenMD { RealType distance = sqrt(pow(r12.x(), 2) + pow(r12.y(), 2)); - int whichRBin = distance / deltaR_; + int whichRBin = int(distance / deltaR_); if (distance <= len_) { RealType Z = fabs(r12.z()); if (Z <= zLen_) { - int whichZBin = Z / deltaZ_; + int whichZBin = int(Z / deltaZ_); ++histogram_[whichRBin][whichZBin]; ++npairs_;