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 1789 by tim, Wed Nov 24 22:12:12 2004 UTC vs.
Revision 1790 by tim, Mon Nov 29 15:50:05 2004 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines