ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/selection/SelectionEvaluator.cpp
(Generate patch)

Comparing trunk/src/selection/SelectionEvaluator.cpp (file contents):
Revision 770 by tim, Fri Dec 2 15:38:03 2005 UTC vs.
Revision 963 by tim, Wed May 17 21:51:42 2006 UTC

# Line 236 | Line 236 | namespace oopse {
236    }
237  
238    void SelectionEvaluator::compareProperty(StuntDouble* sd, OOPSEBitSet& bs, int property, int comparator, float comparisonValue) {
239 <    double propertyValue = 0.0;
239 >    RealType propertyValue = 0.0;
240      switch (property) {
241      case Token::mass:
242        propertyValue = sd->getMass();
# Line 422 | Line 422 | namespace oopse {
422    }
423  
424  
425 <  double SelectionEvaluator::getCharge(Atom* atom) {
426 <    double charge =0.0;
425 >  RealType SelectionEvaluator::getCharge(Atom* atom) {
426 >    RealType charge =0.0;
427      AtomType* atomType = atom->getAtomType();
428      if (atomType->isCharge()) {
429        GenericData* data = atomType->getPropertyByName("Charge");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines