| 80 |  |  | 
| 81 |  | namespace OpenMD { | 
| 82 |  |  | 
| 83 | < | ForceField::ForceField(std::string ffName) { | 
| 83 | > | ForceField::ForceField(std::string ffName): wildCardAtomTypeName_("X") { | 
| 84 |  |  | 
| 85 |  | char* tempPath; | 
| 86 |  | tempPath = getenv("FORCE_PARAM_PATH"); | 
| 761 |  | ifstrstream* ffStream = new ifstrstream(); | 
| 762 |  |  | 
| 763 |  | //try to open the force filed file in current directory first | 
| 764 | < | ffStream->open(forceFieldFilename.c_str(), ifstream::in | ifstream::binary); | 
| 765 | < |  | 
| 764 | > | ffStream->open(forceFieldFilename.c_str()); | 
| 765 |  | if(!ffStream->is_open()){ | 
| 766 |  |  | 
| 767 |  | forceFieldFilename = ffPath_ + "/" + forceFieldFilename; | 
| 768 | < | ffStream->open( forceFieldFilename.c_str(), | 
| 770 | < | ifstream::in | ifstream::binary ); | 
| 768 | > | ffStream->open( forceFieldFilename.c_str() ); | 
| 769 |  |  | 
| 770 |  | //if current directory does not contain the force field file, | 
| 771 |  | //try to open it in the path |