ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/io/AtomTypesSectionParser.cpp
(Generate patch)

Comparing trunk/OOPSE-2.0/src/io/AtomTypesSectionParser.cpp (file contents):
Revision 2256 by gezelter, Fri Apr 15 22:04:00 2005 UTC vs.
Revision 2257 by tim, Mon Jun 13 18:25:30 2005 UTC

# Line 67 | Line 67 | namespace oopse {
67        AtomType* atomType = ff.getAtomType(atomTypeName);
68  
69        if (atomType == NULL) {
70 <        atomType = new AtomType();
71 <        int ident = ff.getNAtomType() + 1;
72 <        atomType->setIdent(ident);
73 <        atomType->setName(atomTypeName);
74 <        ff.addAtomType(atomTypeName, atomType);
70 >        atomType = new AtomType();
71 >        int ident = ff.getNAtomType() + 1;
72 >        atomType->setIdent(ident);
73 >        atomType->setName(atomTypeName);
74 >        ff.addAtomType(atomTypeName, atomType);
75        }
76          
77        double mass = tokenizer.nextTokenAsDouble();              
78        atomType->setMass(mass);
79 <              
79 >      if (tokenizer.hasMoreTokens()) {
80 >          double nelectron = tokenizer.nextTokenAsDouble();
81 >          atomType->addProperty(new DoubleGenericData("nelectron", nelectron));
82 >      }              
83      }    
84  
85  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines