# | 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 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |