Changeset 1168 for XIOS/dev/dev_olga/src/server.cpp
- Timestamp:
- 06/14/17 15:24:43 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/server.cpp
r1167 r1168 84 84 map<unsigned long, int>::iterator it ; 85 85 86 int nbSrv = 0;87 86 int srvNodeSize = 1, srvNodeLeader = 0; 88 87 … … 134 133 { 135 134 MPI_Allgather(&serverLevel, 1, MPI_LONG, hashAll, 1, MPI_LONG, CXios::globalComm) ; 135 136 136 for (i=0; i<size; i++) 137 137 if (hashAll[i] == 2) … … 188 188 interCommRight.push_back(newComm) ; 189 189 } 190 } // primary server190 } 191 191 else 192 192 { … … 201 201 MPI_Intercomm_create(intraComm, 0, CXios::globalComm, clientLeader, 1, &newComm) ; 202 202 interCommLeft.push_back(newComm) ; 203 } // secondary server203 } 204 204 205 205 delete [] hashAll ; … … 667 667 } 668 668 669 vector<int>& CServer::getSecondaryServerGlobalRanks() 670 { 671 return sndServerGlobalRanks; 672 } 673 669 674 /*! 670 675 * Open a file specified by a suffix and an extension and use it for the given file buffer.
Note: See TracChangeset
for help on using the changeset viewer.