ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-1.0/libmdtools/StatWriter.cpp
(Generate patch)

Comparing trunk/OOPSE-1.0/libmdtools/StatWriter.cpp (file contents):
Revision 1334 by gezelter, Fri Jul 16 18:58:03 2004 UTC vs.
Revision 1417 by tim, Tue Jul 27 15:41:17 2004 UTC

# 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      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines