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

Comparing branches/new_design/OOPSE-2.0/src/io/DipoleAtomTypesSectionParser.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/DipoleAtomTypesSectionParser.hpp"
27   #include "types/DirectionalAtomType.hpp"
28 + #include "UseTheForce/ForceField.hpp"
29  
30   namespace oopse {
31  
# Line 43 | Line 44 | void DipoleAtomTypesSectionParser::parseLine(ForceFiel
44      } else {
45  
46          std::string atomTypeName = tokenizer.nextToken();    
47 <        AtomType* atomType = ff ->getAtomType(atomTypeName);
47 >        AtomType* atomType = ff.getAtomType(atomTypeName);
48  
49          if (atomType != NULL) {
50              DirectionalAtomType* dAtomType = dynamic_cast<DirectionalAtomType*>(atomType);
51              
52              if (dAtomType != NULL) {
53 <                double dipole = tokenizer.nextToken();
53 >                double dipole = tokenizer.nextTokenAsDouble();
54                  dAtomType->addProperty(new DoubleGenericData("Dipole", dipole));
55                  dAtomType->setDipole();
56              } else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines