--- trunk/src/brains/ForceField.cpp 2013/06/16 15:15:42 1879 +++ trunk/src/brains/ForceField.cpp 2013/07/17 20:39:58 1905 @@ -80,7 +80,7 @@ namespace OpenMD { namespace OpenMD { - ForceField::ForceField(std::string ffName) { + ForceField::ForceField(std::string ffName): wildCardAtomTypeName_("X") { char* tempPath; tempPath = getenv("FORCE_PARAM_PATH"); @@ -761,13 +761,11 @@ namespace OpenMD { ifstrstream* ffStream = new ifstrstream(); //try to open the force filed file in current directory first - ffStream->open(forceFieldFilename.c_str(), ifstream::in | ifstream::binary); - + ffStream->open(forceFieldFilename.c_str()); if(!ffStream->is_open()){ forceFieldFilename = ffPath_ + "/" + forceFieldFilename; - ffStream->open( forceFieldFilename.c_str(), - ifstream::in | ifstream::binary ); + ffStream->open( forceFieldFilename.c_str() ); //if current directory does not contain the force field file, //try to open it in the path