--- trunk/src/applications/staticProps/GofZ.cpp 2010/05/10 17:28:26 1442 +++ trunk/src/applications/staticProps/GofZ.cpp 2012/08/22 02:28:28 1782 @@ -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 @@ -75,7 +76,7 @@ namespace OpenMD { RealType pairDensity = nPairs /volume * 2.0; RealType pairConstant = ( 2.0 * NumericConstant::PI * pairDensity ); - for(int i = 0 ; i < histogram_.size(); ++i){ + for(unsigned int i = 0 ; i < histogram_.size(); ++i){ RealType zLower = i * deltaZ_; RealType zUpper = zLower + deltaZ_; @@ -120,7 +121,7 @@ namespace OpenMD { rdfStream << "#selection1: (" << selectionScript1_ << ")\t"; rdfStream << "selection2: (" << selectionScript2_ << ")\n"; rdfStream << "#r\tcorrValue\n"; - for (int i = 0; i < avgGofz_.size(); ++i) { + for (unsigned int i = 0; i < avgGofz_.size(); ++i) { RealType z = deltaZ_ * (i + 0.5); rdfStream << z << "\t" << avgGofz_[i]/nProcessed_ << "\n"; }