--- trunk/src/applications/staticProps/BOPofR.cpp 2012/08/22 18:43:27 1785 +++ trunk/src/applications/staticProps/BOPofR.cpp 2012/08/31 21:16:10 1793 @@ -181,7 +181,7 @@ namespace OpenMD { std::vector Q; std::vector W; std::vector W_hat; - int nBonds, Nbonds; + int nBonds; SphericalHarmonic sphericalHarmonic; int i; @@ -200,7 +200,6 @@ namespace OpenMD { Q.resize(lMax_+1); W.resize(lMax_+1); W_hat.resize(lMax_+1); - Nbonds = 0; for (int istep = 0; istep < nFrames; istep += step_) { reader.readFrame(istep); @@ -322,7 +321,7 @@ namespace OpenMD { if ( distCOM < len_){ // Figure out where this distance goes... - int whichBin = distCOM / deltaR_; + int whichBin = int(distCOM / deltaR_); RCount_[whichBin]++; if(real(what[6]) < -0.15){