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

Comparing:
branches/development/src/brains/ForceField.cpp (file contents), Revision 1725 by gezelter, Sat May 26 18:13:43 2012 UTC vs.
trunk/src/brains/ForceField.cpp (file contents), Revision 1790 by gezelter, Thu Aug 30 17:18:22 2012 UTC

# Line 771 | Line 771 | namespace OpenMD {
771      ifstrstream* ffStream = new ifstrstream();
772      
773      //try to open the force filed file in current directory first    
774 <    ffStream->open(forceFieldFilename.c_str());
774 >    ffStream->open(forceFieldFilename.c_str(), ifstream::in | ifstream::binary);
775 >
776      if(!ffStream->is_open()){
777  
778        forceFieldFilename = ffPath_ + "/" + forceFieldFilename;
779 <      ffStream->open( forceFieldFilename.c_str() );
779 >      ffStream->open( forceFieldFilename.c_str(),  
780 >                      ifstream::in | ifstream::binary );
781  
782        //if current directory does not contain the force field file,
783        //try to open it in the path        

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines