ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/md_code/DumpWriter.cpp
(Generate patch)

Comparing trunk/mdtools/md_code/DumpWriter.cpp (file contents):
Revision 11 by mmeineke, Tue Jul 9 18:40:59 2002 UTC vs.
Revision 162 by mmeineke, Thu Oct 31 21:20:49 2002 UTC

# Line 3 | Line 3
3   #include <fstream>
4  
5   #include "ReadWrite.hpp"
6 + #include "simError.h"
7  
8  
8
9   DumpWriter::DumpWriter( SimInfo* the_entry_plug ){
10  
11    entry_plug = the_entry_plug;
# Line 15 | Line 15 | DumpWriter::DumpWriter( SimInfo* the_entry_plug ){
15    
16    if( !outFile ){
17      
18 <    cerr << "Could not open \"" << outName << "\" for dump output.\n";
19 <    exit(8);
18 >    sprintf( painCave.errMsg,
19 >             "Could not open \"%s\" for dump output.\n",
20 >             outName);
21 >    painCave.isFatal = 1;
22 >    simError();
23    }
24    
25    //outFile.setf( ios::scientific );
# Line 90 | Line 93 | void DumpWriter::writeFinal(){
93  
94    ofstream finalOut( finalName );
95    if( !finalOut ){
96 <    cerr << "Could not open \"" << finalName << "\" for final dump output.\n";
97 <    exit(8);
96 >    sprintf( painCave.errMsg,
97 >             "Could not open \"%s\" for final dump output.\n",
98 >             finalName );
99 >    painCave.isFatal = 1;
100 >    simError();
101    }
102    
103   // finalOut.setf( ios::scientific );

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines