--- trunk/src/applications/sequentialProps/ContactAngle2.cpp 2015/03/07 22:54:56 2072 +++ trunk/src/applications/sequentialProps/ContactAngle2.cpp 2015/03/07 23:52:07 2073 @@ -125,10 +125,8 @@ namespace OpenMD { int whichRBin = int(r / dr); int whichZBin = int( (zLen/2.0 + z) / dz); - if ((whichRBin < nRBins_) && (whichZBin >= 0) && (whichZBin < nZBins_)) { - std::size_t i = static_cast(whichRBin); - std::size_t j = static_cast(whichZBin); - histo[i][j] += sd->getMass(); + if ((whichRBin < int(nRBins_)) && (whichZBin >= 0) && (whichZBin < int(nZBins_))) { + histo[whichRBin][whichZBin] += sd->getMass(); } }