| 57 |
|
|
| 58 |
|
namespace oopse { |
| 59 |
|
|
| 60 |
< |
DUFF::DUFF(){ |
| 60 |
> |
DUFF::DUFF(){ |
| 61 |
|
|
| 62 |
|
//set default force field filename |
| 63 |
|
setForceFieldFileName("DUFF2.frc"); |
| 82 |
|
spMan_.push_back(new BendTypesSectionParser()); |
| 83 |
|
spMan_.push_back(new TorsionTypesSectionParser()); |
| 84 |
|
|
| 85 |
< |
} |
| 85 |
> |
} |
| 86 |
|
|
| 87 |
< |
void DUFF::parse(const std::string& filename) { |
| 87 |
> |
void DUFF::parse(const std::string& filename) { |
| 88 |
|
ifstrstream* ffStream; |
| 89 |
|
ffStream = openForceFieldFile(filename); |
| 90 |
|
|
| 94 |
|
AtomType* at; |
| 95 |
|
|
| 96 |
|
for (at = atomTypeCont_.beginType(i); at != NULL; at = atomTypeCont_.nextType(i)) { |
| 97 |
< |
at->makeFortranAtomType(); |
| 97 |
> |
at->makeFortranAtomType(); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
for (at = atomTypeCont_.beginType(i); at != NULL; at = atomTypeCont_.nextType(i)) { |
| 101 |
< |
at->complete(); |
| 101 |
> |
at->complete(); |
| 102 |
|
} |
| 103 |
+ |
|
| 104 |
+ |
delete ffStream; |
| 105 |
|
|
| 106 |
< |
} |
| 106 |
> |
} |
| 107 |
|
|
| 108 |
+ |
DUFF::~DUFF(){ |
| 109 |
+ |
destroyLJTypes(); |
| 110 |
+ |
destroyStickyTypes(); |
| 111 |
+ |
} |
| 112 |
|
} //end namespace oopse |