Changeset 1545 for XIOS/dev/branch_openmp/src/client.cpp
- Timestamp:
- 06/18/18 20:32:55 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/client.cpp
r1460 r1545 18 18 MPI_Comm CClient::intraComm ; 19 19 MPI_Comm CClient::interComm ; 20 //std::list<MPI_Comm> CClient::contextInterComms;21 20 std::list<MPI_Comm> *CClient::contextInterComms_ptr = 0; 22 21 int CClient::serverLeader ; … … 110 109 MPI_Comm_size(intraComm,&intraCommSize) ; 111 110 MPI_Comm_rank(intraComm,&intraCommRank) ; 111 112 MPI_Intercomm_create(intraComm, 0, CXios::globalComm, serverLeader, 0, &interComm) ; 112 113 #pragma omp critical (_output) 113 114 { … … 115 116 <<" intraCommRank :"<<intraCommRank<<" clientLeader "<< serverLeader<<endl ; 116 117 } 117 MPI_Intercomm_create(intraComm, 0, CXios::globalComm, serverLeader, 0, &interComm) ; 118 //rank_ = intraCommRank; 118 119 119 } 120 120 else … … 198 198 CContext::setCurrent(id); 199 199 200 //contextInterComms.push_back(contextInterComm);201 200 if(contextInterComms_ptr == NULL) contextInterComms_ptr = new std::list<MPI_Comm>; 202 201 contextInterComms_ptr->push_back(contextInterComm); … … 234 233 context->initClient(contextComm,contextInterComm) ; 235 234 236 //contextInterComms.push_back(contextInterComm);237 235 if(contextInterComms_ptr == NULL) contextInterComms_ptr = new std::list<MPI_Comm>; 238 236 contextInterComms_ptr->push_back(contextInterComm); … … 260 258 } 261 259 262 //for (std::list<MPI_Comm>::iterator it = contextInterComms.begin(); it != contextInterComms.end(); it++)263 260 for (std::list<MPI_Comm>::iterator it = contextInterComms_ptr->begin(); it != contextInterComms_ptr->end(); it++) 264 261 MPI_Comm_free(&(*it)); … … 333 330 if (!fb->is_open()) 334 331 ERROR("void CClient::openStream(const StdString& fileName, const StdString& ext, std::filebuf* fb)", 335 << std::endl << "Can not open <" << fileNameClient << "> file to write the client log(s).");332 << std::endl << "Can not open <" << fileNameClient.str() << "> file to write the client log(s)."); 336 333 } 337 334
Note: See TracChangeset
for help on using the changeset viewer.