| 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 |