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

Comparing trunk/OOPSE/libmdtools/DumpWriter.cpp (file contents):
Revision 949 by chuckv, Thu Jan 15 21:57:10 2004 UTC vs.
Revision 952 by tim, Fri Jan 16 21:55:39 2004 UTC

# Line 110 | Line 110 | void DumpWriter::writeDump(double currentTime){
110    vector<ofstream*> fileStreams;
111  
112   #ifdef IS_MPI
113  printf("Hello from node %d\n", worldRank);
114  sortByGlobalIndex();
113    if(worldRank == 0 ){
114 <    
114 > #endif    
115      finalOut.open( entry_plug->finalName, ios::out | ios::trunc );
116      if( !finalOut ){
117        sprintf( painCave.errMsg,
# Line 122 | Line 120 | void DumpWriter::writeDump(double currentTime){
120        painCave.isFatal = 1;
121        simError();
122      }
123 + #ifdef IS_MPI
124    }
125   #endif // is_mpi
126  
# Line 143 | Line 142 | void DumpWriter::writeFinal(double currentTime){
142  
143   #ifdef IS_MPI
144    if(worldRank == 0 ){
145 + #endif // is_mpi
146  
147      finalOut.open( entry_plug->finalName, ios::out | ios::trunc );
148  
# Line 154 | Line 154 | void DumpWriter::writeFinal(double currentTime){
154        simError();
155      }
156  
157 + #ifdef IS_MPI
158    }
159   #endif // is_mpi
160    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines