--- trunk/src/selection/SelectionEvaluator.cpp 2013/06/16 15:15:42 1879 +++ trunk/src/selection/SelectionEvaluator.cpp 2013/08/19 19:20:32 1931 @@ -56,7 +56,7 @@ namespace OpenMD { SelectionEvaluator::SelectionEvaluator(SimInfo* si) : info(si), nameFinder(info), distanceFinder(info), hullFinder(info), - indexFinder(info), + indexFinder(info), hasSurfaceArea_(false), isLoaded_(false){ nStuntDouble = info->getNGlobalAtoms() + info->getNGlobalRigidBodies(); } @@ -377,6 +377,7 @@ namespace OpenMD { float comparisonValue) { RealType propertyValue = 0.0; Vector3d pos; + switch (property) { case Token::mass: propertyValue = sd->getMass(); @@ -446,6 +447,7 @@ namespace OpenMD { match = propertyValue != comparisonValue; break; } + if (match) bs.setBitOn(sd->getGlobalIndex()); @@ -730,7 +732,8 @@ namespace OpenMD { OpenMDBitSet bs(nStuntDouble); bs = hullFinder.findHull(); - + surfaceArea_ = hullFinder.getSurfaceArea(); + hasSurfaceArea_ = true; return bs; } @@ -739,7 +742,7 @@ namespace OpenMD { OpenMDBitSet bs(nStuntDouble); bs = hullFinder.findHull(frame); - + return bs; }