51 |
|
#include "UseTheForce/ForceField.hpp" |
52 |
|
#include "utils/simError.h" |
53 |
|
#include "utils/Tuple.hpp" |
54 |
– |
#include "UseTheForce/DarkSide/atype_interface.h" |
55 |
– |
#include "UseTheForce/DarkSide/fForceOptions_interface.h" |
56 |
– |
#include "UseTheForce/DarkSide/switcheroo_interface.h" |
54 |
|
namespace OpenMD { |
55 |
|
|
56 |
|
ForceField::ForceField() { |
57 |
+ |
|
58 |
|
char* tempPath; |
59 |
|
tempPath = getenv("FORCE_PARAM_PATH"); |
60 |
< |
|
60 |
> |
|
61 |
|
if (tempPath == NULL) { |
62 |
|
//convert a macro from compiler to a string in c++ |
63 |
|
STR_DEFINE(ffPath_, FRC_PATH ); |
66 |
|
} |
67 |
|
} |
68 |
|
|
71 |
– |
|
72 |
– |
ForceField::~ForceField() { |
73 |
– |
deleteAtypes(); |
74 |
– |
deleteSwitch(); |
75 |
– |
} |
76 |
– |
|
69 |
|
AtomType* ForceField::getAtomType(const std::string &at) { |
70 |
|
std::vector<std::string> keys; |
71 |
|
keys.push_back(at); |
622 |
|
return ffStream; |
623 |
|
} |
624 |
|
|
633 |
– |
void ForceField::setFortranForceOptions(){ |
634 |
– |
ForceOptions theseFortranOptions; |
635 |
– |
forceFieldOptions_.makeFortranOptions(theseFortranOptions); |
636 |
– |
setfForceOptions(&theseFortranOptions); |
637 |
– |
} |
625 |
|
} //end namespace OpenMD |