ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/io/ChargeAtomTypesSectionParser.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/io/ChargeAtomTypesSectionParser.cpp (file contents):
Revision 1765 by tim, Mon Nov 22 20:55:52 2004 UTC vs.
Revision 1784 by tim, Wed Nov 24 22:12:12 2004 UTC

# Line 24 | Line 24
24   */
25  
26   #include "io/ChargeAtomTypesSectionParser.hpp"
27 + #include "types/AtomType.hpp"
28  
29   namespace oopse {
30  
# Line 45 | Line 46 | void ChargeAtomTypesSectionParser::parseLine(ForceFiel
46          AtomType* atomType = ff ->getAtomType(atomTypeName);
47  
48          if (atomType != NULL) {
49 <            double charge = tokenizer.nextToken();
49 >            double charge = tokenizer.nextTokenAsDouble();
50              atomType.addProperty(new DoubleGenericData("Charge", charge));
51              atomType->setCharge();
52          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines