| # | Line 99 | Line 99 | void GofR::collectHistogram(StuntDouble* sd1, StuntDou | |
|---|---|---|
| 99 | ||
| 100 | double distance = r12.length(); | |
| 101 | ||
| 102 | < | int whichBin = distance / deltaR_; |
| 103 | < | ++histogram_[whichBin]; |
| 104 | < | ++npairs_; |
| 102 | > | if (distance < len_) { |
| 103 | > | int whichBin = distance / deltaR_; |
| 104 | > | ++histogram_[whichBin]; |
| 105 | > | ++npairs_; |
| 106 | > | } |
| 107 | } | |
| 108 | ||
| 109 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |