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 1390 by gezelter, Wed Nov 25 20:02:06 2009 UTC vs.
Revision 1513 by gezelter, Tue Oct 19 18:40:54 2010 UTC

# Line 51 | Line 51 | namespace OpenMD {
51  
52  
53    SelectionEvaluator::SelectionEvaluator(SimInfo* si)
54 <    : info(si), nameFinder(info), distanceFinder(info), indexFinder(info),
54 >    : info(si), nameFinder(info), distanceFinder(info), hullFinder(info),
55 >      indexFinder(info),
56        isLoaded_(false){    
57        nStuntDouble = info->getNGlobalAtoms() + info->getNGlobalRigidBodies();
58      }            
# Line 181 | Line 182 | namespace OpenMD {
182        case Token::within:
183          withinInstruction(instruction, stack.top());
184          break;
185 +      case Token::hull:
186 +        stack.push(hull());
187 +        break;
188          //case Token::selected:
189          //  stack.push(getSelectionSet());
190          //  break;
# Line 273 | Line 277 | namespace OpenMD {
277        break;
278      case Token::z:
279        propertyValue = sd->getPos().z();
280 +      break;
281 +    case Token::r:
282 +      propertyValue = sd->getPos().length();
283        break;
284      default:
285        unrecognizedAtomProperty(property);
# Line 441 | Line 448 | namespace OpenMD {
448    }
449  
450  
451 +  OpenMDBitSet SelectionEvaluator::hull() {
452 +    OpenMDBitSet bs(nStuntDouble);
453 +    
454 +    bs = hullFinder.findHull();
455 +    
456 +    return bs;
457 +  }
458 +
459 +
460 +
461    RealType SelectionEvaluator::getCharge(Atom* atom) {
462      RealType charge =0.0;
463      AtomType* atomType = atom->getAtomType();

Comparing trunk/src/selection/SelectionEvaluator.cpp (property svn:keywords):
Revision 1390 by gezelter, Wed Nov 25 20:02:06 2009 UTC vs.
Revision 1513 by gezelter, Tue Oct 19 18:40:54 2010 UTC

# Line 0 | Line 1
1 + Author Id Revision Date

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines