ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/applications/staticProps/GofXyz.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/applications/staticProps/GofXyz.cpp (file contents):
Revision 2048 by tim, Thu Feb 17 19:50:30 2005 UTC vs.
Revision 2049 by tim, Thu Feb 17 20:15:29 2005 UTC

# Line 140 | Line 140 | void GofXyz::collectHistogram(StuntDouble* sd1, StuntD
140      int ybin = (y + halfLen_) / deltaR_;
141      int zbin = (z + halfLen_) / deltaR_;
142  
143 <    if (xbin < nRBins_ && ybin < nRBins_ && zbin < nRBins_) {
144 <        ++histogram_[x][y][z];
143 >    if (xbin < nRBins_ && xbin >=0 &&
144 >        ybin < nRBins_ && ybin >= 0 &&
145 >        zbin < nRBins_ && zbin >=0 ) {
146 >        ++histogram_[xbin][ybin][zbin];
147      }
148      
149   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines