--- trunk/src/UseTheForce/ForceField.cpp 2009/11/25 20:02:06 1390 +++ branches/development/src/UseTheForce/ForceField.cpp 2010/07/20 15:43:00 1473 @@ -57,9 +57,10 @@ namespace OpenMD { namespace OpenMD { ForceField::ForceField() { + char* tempPath; tempPath = getenv("FORCE_PARAM_PATH"); - + if (tempPath == NULL) { //convert a macro from compiler to a string in c++ STR_DEFINE(ffPath_, FRC_PATH ); @@ -71,7 +72,7 @@ namespace OpenMD { ForceField::~ForceField() { deleteAtypes(); - deleteSwitch(); + deleteSwitch(); } AtomType* ForceField::getAtomType(const std::string &at) {