ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/io/RestWriter.cpp
(Generate patch)

Comparing trunk/OOPSE-2.0/src/io/RestWriter.cpp (file contents):
Revision 2106 by chrisfen, Thu Mar 10 15:10:24 2005 UTC vs.
Revision 2107 by chrisfen, Thu Mar 10 19:11:02 2005 UTC

# Line 77 | Line 77 | namespace oopse {
77        if( !finalOut ){
78          sprintf( painCave.errMsg,
79                   "Could not open \"%s\" for zAngle output.\n",
80 <                 outName );
80 >                 outName.c_str() );
81          painCave.isFatal = 1;
82          simError();
83        }
# Line 124 | Line 124 | namespace oopse {
124      MPI_Status ierr;
125      int intObIndex;
126      double zAngle;
127 <    
127 >  
128      if (masterNode == 0) {
129        std::map<int, double> zAngData;
130        for(int i = 0 ; i < nproc; ++i) {
# Line 138 | Line 138 | namespace oopse {
138                
139                intObIndex = integrableObject->getGlobalIndex() ;
140                zAngle = integrableObject->getZangle();
141 <              zAngData.insert(pair<int, double>(intObIndex, zAngle));
141 >              zAngData.insert(std::pair<int, double>(intObIndex, zAngle));
142              }      
143            }
144            
# Line 146 | Line 146 | namespace oopse {
146            for(int k = 0; k < nIntObjectsInProc[i]; ++k) {
147              MPI_Recv(&intObIndex, 1, MPI_INT, i, 0, MPI_COMM_WORLD,&ierr);
148              MPI_Recv(&zAngle, 1, MPI_DOUBLE, i, 0, MPI_COMM_WORLD,&ierr);
149 <            zAngData.insert(pair<int, double>(intObIndex, zAngle));
149 >            zAngData.insert(std::pair<int, double>(intObIndex, zAngle));
150            }
151          }
152          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines