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; |
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 ); |
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 ); |