--- trunk/src/applications/staticProps/BondAngleDistribution.cpp 2012/08/22 02:28:28 1782 +++ trunk/src/applications/staticProps/BondAngleDistribution.cpp 2012/08/30 17:18:22 1790 @@ -81,7 +81,7 @@ namespace OpenMD { histogram_.clear(); } - void BondAngleDistribution::initalizeHistogram() { + void BondAngleDistribution::initializeHistogram() { for (int bin = 0; bin < nBins_; bin++) { histogram_[bin] = 0; } @@ -181,7 +181,7 @@ namespace OpenMD { if (theta > 180.0){ theta = 360.0 - theta; } - int whichBin = theta/deltaTheta_; + int whichBin = int(theta/deltaTheta_); histogram_[whichBin] += 2; }