--- trunk/mdtools/md_code/StatWriter.cpp 2002/10/31 21:20:45 161 +++ trunk/mdtools/md_code/StatWriter.cpp 2002/10/31 21:20:49 162 @@ -3,6 +3,7 @@ #include #include "ReadWrite.hpp" +#include "simError.h" StatWriter::StatWriter( SimInfo* the_entry_plug ){ @@ -14,8 +15,11 @@ StatWriter::StatWriter( SimInfo* the_entry_plug ){ if( !outFile ){ - cerr << "Could not open \"" << outName << "\" for stat output.\n"; - exit(8); + sprintf( painCave.errMsg, + "Could not open \"%s\" for stat output.\n", + outName); + painCave.isFatal = 1; + simError(); } //outFile.setf( ios::scientific );