Skip to content
Snippets Groups Projects
Commit d6fe1049 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Changed open() to auto backup version

parent 09ad85b7
No related branches found
No related tags found
No related merge requests found
......@@ -156,14 +156,14 @@ old_norm(0.0)
// Read in data from input file
readDataFromFile( filename );
// Setup the restart file (append mode)
if( write_chq ) rfile.open( filename.c_str(), "aw" );
if( write_chq ) rfile.open( filename.c_str());
// Run the analysis if we stoped in the middle of it last time
if( idata==ndata ) runAnalysis();
log.printf(" restarting analysis with %u points read from restart file\n",idata);
} else if( write_chq ){
// Setup the restart file (delete any old one)
remove( filename.c_str() );
rfile.open( filename.c_str(), "w+" );
rfile.open( filename.c_str());
}
if( write_chq ){
rfile.addConstantField("old_normalization");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment