| # | Line 17 | Line 17 | StatWriter::StatWriter( SimInfo* the_entry_plug ){ | |
|---|---|---|
| 17 | if(worldRank == 0 ){ | |
| 18 | #endif // is_mpi | |
| 19 | ||
| 20 | < | strcpy( outName, entry_plug->statusName ); |
| 20 | > | outName = entry_plug->statusName; |
| 21 | ||
| 22 | //std::cerr << "Opening " << outName << " for stat\n"; | |
| 23 | ||
| 24 | < | outFile.open(outName, ios::out | ios::trunc ); |
| 24 | > | outFile.open(outName.c_str(), ios::out | ios::trunc ); |
| 25 | ||
| 26 | if( !outFile ){ | |
| 27 | ||
| 28 | sprintf( painCave.errMsg, | |
| 29 | "Could not open \"%s\" for stat output.\n", | |
| 30 | < | outName); |
| 30 | > | outName.c_str()); |
| 31 | painCave.isFatal = 1; | |
| 32 | simError(); | |
| 33 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |