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

Comparing trunk/src/visitors/AtomNameVisitor.cpp (file contents):
Revision 1792 by gezelter, Wed Aug 22 02:28:28 2012 UTC vs.
Revision 1793 by gezelter, Fri Aug 31 21:16:10 2012 UTC

# Line 57 | Line 57 | namespace OpenMD {
57    void AtomNameVisitor::visitAtom(Atom* atom) {
58      AtomData* atomData;
59      GenericData* data;    
60    bool haveAtomData;
60      
61      data = atom->getPropertyByName("ATOMDATA");
62      if(data != NULL){
# Line 65 | Line 64 | namespace OpenMD {
64        if(atomData == NULL){
65          std::cerr << "can not get Atom Data from " << atom->getType() << std::endl;
66          atomData = new AtomData;
68        haveAtomData = false;      
69      } else {
70        haveAtomData = true;
67        }
68      } else {
69 <      atomData = new AtomData;
74 <      haveAtomData = false;
69 >      atomData = new AtomData;      
70      }
71      
72      std::vector<AtomInfo*>::iterator i;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines