# | Line 125 | Line 125 | namespace OpenMD { | |
---|---|---|
125 | int whichRBin = int(r / dr); | |
126 | int whichZBin = int( (zLen/2.0 + z) / dz); | |
127 | ||
128 | < | if ((whichRBin < nRBins_) && (whichZBin >= 0) && (whichZBin < nZBins_)) { |
129 | < | std::size_t i = static_cast<std::size_t>(whichRBin); |
130 | < | std::size_t j = static_cast<std::size_t>(whichZBin); |
131 | < | histo[i][j] += sd->getMass(); |
128 | > | if ((whichRBin < int(nRBins_)) && (whichZBin >= 0) && (whichZBin < int(nZBins_))) { |
129 | > | histo[whichRBin][whichZBin] += sd->getMass(); |
130 | } | |
131 | ||
132 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |