ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/applications/staticProps/TwoDGofR.cpp
(Generate patch)

Comparing branches/development/src/applications/staticProps/TwoDGofR.cpp (file contents):
Revision 1665 by gezelter, Tue Nov 22 20:38:56 2011 UTC vs.
Revision 1767 by gezelter, Fri Jul 6 22:01:58 2012 UTC

# Line 81 | Line 81 | namespace OpenMD {
81      RealType pairDensity = nPairs /volume * 2.0;
82      RealType pairConstant = (NumericConstant::PI * pairDensity);
83  
84 <    for(int i = 0 ; i < histogram_.size(); ++i){
84 >    for(unsigned int i = 0 ; i < histogram_.size(); ++i){
85  
86        RealType rLower = i * deltaR_;
87        RealType rUpper = rLower + deltaR_;
# Line 121 | Line 121 | namespace OpenMD {
121        rdfStream << "#selection1: (" << selectionScript1_ << ")\t";
122        rdfStream << "selection2: (" << selectionScript2_ << ")\n";
123        rdfStream << "#r\tcorrValue\n";
124 <      for (int i = 0; i < avgTwoDGofR_.size(); ++i) {
124 >      for (unsigned int i = 0; i < avgTwoDGofR_.size(); ++i) {
125          RealType r = deltaR_ * (i + 0.5);
126          rdfStream << r << "\t" << avgTwoDGofR_[i]/nProcessed_ << "\n";
127        }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines