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

Comparing trunk/OOPSE-1.0/libmdtools/DumpWriter.cpp (file contents):
Revision 1334 by gezelter, Fri Jul 16 18:58:03 2004 UTC vs.
Revision 1421 by tim, Tue Jul 27 18:44:49 2004 UTC

# Line 29 | Line 29 | DumpWriter::DumpWriter( SimInfo* the_entry_plug ){
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      }
# Line 107 | Line 107 | void DumpWriter::writeDump(double currentTime){
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      }
# Line 139 | Line 139 | void DumpWriter::writeFinal(double currentTime){
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      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines