--- trunk/src/applications/staticProps/TwoDGofR.cpp 2010/06/23 19:25:02 1454 +++ trunk/src/applications/staticProps/TwoDGofR.cpp 2012/08/22 18:43:27 1785 @@ -36,7 +36,8 @@ * [1] Meineke, et al., J. Comp. Chem. 26, 252-271 (2005). * [2] Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006). * [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008). - * [4] Vardeman & Gezelter, in progress (2009). + * [4] Kuang & Gezelter, J. Chem. Phys. 133, 164101 (2010). + * [5] Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). */ #include @@ -64,7 +65,7 @@ namespace OpenMD { std::fill(avgTwoDGofR_.begin(), avgTwoDGofR_.end(), 0.0); } - void TwoDGofR::initalizeHistogram() { + void TwoDGofR::initializeHistogram() { std::fill(histogram_.begin(), histogram_.end(), 0); } @@ -80,7 +81,7 @@ namespace OpenMD { RealType pairDensity = nPairs /volume * 2.0; RealType pairConstant = (NumericConstant::PI * pairDensity); - for(int i = 0 ; i < histogram_.size(); ++i){ + for(unsigned int i = 0 ; i < histogram_.size(); ++i){ RealType rLower = i * deltaR_; RealType rUpper = rLower + deltaR_; @@ -120,7 +121,7 @@ namespace OpenMD { rdfStream << "#selection1: (" << selectionScript1_ << ")\t"; rdfStream << "selection2: (" << selectionScript2_ << ")\n"; rdfStream << "#r\tcorrValue\n"; - for (int i = 0; i < avgTwoDGofR_.size(); ++i) { + for (unsigned int i = 0; i < avgTwoDGofR_.size(); ++i) { RealType r = deltaR_ * (i + 0.5); rdfStream << r << "\t" << avgTwoDGofR_[i]/nProcessed_ << "\n"; }