--- trunk/src/selection/SelectionEvaluator.cpp 2005/12/02 15:38:03 770 +++ trunk/src/selection/SelectionEvaluator.cpp 2009/09/07 16:31:51 1360 @@ -236,7 +236,7 @@ namespace oopse { } void SelectionEvaluator::compareProperty(StuntDouble* sd, OOPSEBitSet& bs, int property, int comparator, float comparisonValue) { - double propertyValue = 0.0; + RealType propertyValue = 0.0; switch (property) { case Token::mass: propertyValue = sd->getMass(); @@ -254,6 +254,15 @@ namespace oopse { } } break; + case Token::x: + propertyValue = sd->getPos().x(); + break; + case Token::y: + propertyValue = sd->getPos().y(); + break; + case Token::z: + propertyValue = sd->getPos().z(); + break; default: unrecognizedAtomProperty(property); } @@ -422,8 +431,8 @@ namespace oopse { } - double SelectionEvaluator::getCharge(Atom* atom) { - double charge =0.0; + RealType SelectionEvaluator::getCharge(Atom* atom) { + RealType charge =0.0; AtomType* atomType = atom->getAtomType(); if (atomType->isCharge()) { GenericData* data = atomType->getPropertyByName("Charge");