26 |
|
#include "io/StickyAtomTypesSectionParser.hpp" |
27 |
|
#include "types/AtomType.hpp" |
28 |
|
#include "types/DirectionalAtomType.hpp" |
29 |
+ |
#include "UseTheForce/ForceField.hpp" |
30 |
|
|
31 |
|
namespace oopse { |
32 |
|
|
45 |
|
} else { |
46 |
|
|
47 |
|
std::string atomTypeName = tokenizer.nextToken(); |
48 |
< |
AtomType* atomType = ff ->getAtomType(atomTypeName); |
48 |
> |
AtomType* atomType = ff.getAtomType(atomTypeName); |
49 |
|
|
50 |
|
if (atomType != NULL) { |
51 |
|
DirectionalAtomType* dAtomType = dynamic_cast<DirectionalAtomType*>(atomType); |
60 |
|
sticky.rlp = tokenizer.nextTokenAsDouble(); |
61 |
|
sticky.rup = tokenizer.nextTokenAsDouble(); |
62 |
|
|
63 |
< |
dAtomType->addProperty(new DoubleGenericData("Sticky", sticky)); |
63 |
> |
dAtomType->addProperty(new StickyParamGenericData("Sticky", sticky)); |
64 |
|
dAtomType->setSticky(); |
65 |
|
} else { |
66 |
|
std::cerr << "StickyAtomTypesSectionParser Warning:" << std::endl; |