--- trunk/src/applications/staticProps/GofR.cpp 2012/08/22 02:28:28 1782 +++ trunk/src/applications/staticProps/GofR.cpp 2012/08/30 17:18:22 1790 @@ -63,7 +63,7 @@ namespace OpenMD { std::fill(avgGofr_.begin(), avgGofr_.end(), 0.0); } - void GofR::initalizeHistogram() { + void GofR::initializeHistogram() { std::fill(histogram_.begin(), histogram_.end(), 0); } @@ -102,7 +102,7 @@ namespace OpenMD { RealType distance = r12.length(); if (distance < len_) { - int whichBin = distance / deltaR_; + int whichBin = int(distance / deltaR_); histogram_[whichBin] += 2; } }