ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/brains/ForceField.cpp
(Generate patch)

Comparing trunk/src/brains/ForceField.cpp (file contents):
Revision 1879 by gezelter, Sun Jun 16 15:15:42 2013 UTC vs.
Revision 1880 by gezelter, Mon Jun 17 18:28:30 2013 UTC

# Line 761 | Line 761 | namespace OpenMD {
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        

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines