--- trunk/src/applications/staticProps/GofR.cpp 2005/02/13 20:08:29 327 +++ trunk/src/applications/staticProps/GofR.cpp 2005/02/13 20:36:24 328 @@ -99,9 +99,11 @@ void GofR::collectHistogram(StuntDouble* sd1, StuntDou double distance = r12.length(); - int whichBin = distance / deltaR_; - ++histogram_[whichBin]; - ++npairs_; + if (distance < len_) { + int whichBin = distance / deltaR_; + ++histogram_[whichBin]; + ++npairs_; + } }