| 29 |
|
if(worldRank == 0 ){ |
| 30 |
|
#endif // is_mpi |
| 31 |
|
|
| 32 |
< |
dumpFile.open(entry_plug->sampleName, ios::out | ios::trunc ); |
| 32 |
> |
dumpFile.open(entry_plug->sampleName.c_str(), ios::out | ios::trunc ); |
| 33 |
|
|
| 34 |
|
if( !dumpFile ){ |
| 35 |
|
|
| 36 |
|
sprintf( painCave.errMsg, |
| 37 |
|
"Could not open \"%s\" for dump output.\n", |
| 38 |
< |
entry_plug->sampleName); |
| 38 |
> |
entry_plug->sampleName.c_str()); |
| 39 |
|
painCave.isFatal = 1; |
| 40 |
|
simError(); |
| 41 |
|
} |
| 107 |
|
#ifdef IS_MPI |
| 108 |
|
if(worldRank == 0 ){ |
| 109 |
|
#endif |
| 110 |
< |
finalOut.open( entry_plug->finalName, ios::out | ios::trunc ); |
| 110 |
> |
finalOut.open( entry_plug->finalName.c_str(), ios::out | ios::trunc ); |
| 111 |
|
if( !finalOut ){ |
| 112 |
|
sprintf( painCave.errMsg, |
| 113 |
|
"Could not open \"%s\" for final dump output.\n", |
| 114 |
< |
entry_plug->finalName ); |
| 114 |
> |
entry_plug->finalName.c_str() ); |
| 115 |
|
painCave.isFatal = 1; |
| 116 |
|
simError(); |
| 117 |
|
} |
| 139 |
|
if(worldRank == 0 ){ |
| 140 |
|
#endif // is_mpi |
| 141 |
|
|
| 142 |
< |
finalOut.open( entry_plug->finalName, ios::out | ios::trunc ); |
| 142 |
> |
finalOut.open( entry_plug->finalName.c_str(), ios::out | ios::trunc ); |
| 143 |
|
|
| 144 |
|
if( !finalOut ){ |
| 145 |
|
sprintf( painCave.errMsg, |
| 146 |
|
"Could not open \"%s\" for final dump output.\n", |
| 147 |
< |
entry_plug->finalName ); |
| 147 |
> |
entry_plug->finalName.c_str() ); |
| 148 |
|
painCave.isFatal = 1; |
| 149 |
|
simError(); |
| 150 |
|
} |