Changeset 2580 for XIOS3/trunk/src/client.cpp
- Timestamp:
- 09/26/23 17:24:35 (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/client.cpp
r2576 r2580 106 106 107 107 MPI_Comm_split(globalComm, color, commRank, &clientComm) ; 108 CXios::getMpiGarbageCollector().registerCommunicator(clientComm) ; 108 109 } 109 110 else … … 115 116 { 116 117 MPI_Comm_dup(localComm,&clientComm) ; 118 CXios::getMpiGarbageCollector().registerCommunicator(clientComm) ; 117 119 MPI_Comm_dup(localComm,&intraComm_) ; 120 CXios::getMpiGarbageCollector().registerCommunicator(intraComm_) ; 118 121 119 122 if (CXios::usingServer) … … 175 178 MPI_Comm_rank(CXios::getXiosComm(), &commRank) ; 176 179 MPI_Comm_split(CXios::getXiosComm(),false,commRank, &clientsComm_) ; 180 CXios::getMpiGarbageCollector().registerCommunicator(clientsComm_) ; 177 181 178 182 // is using server or not ? … … 277 281 { 278 282 MPI_Intercomm_create(intraComm, 0, globalComm, serverRank, 3141, &interComm); 283 CXios::getMpiGarbageCollector().registerCommunicator(interComm) ; 279 284 MPI_Comm_free(&intraComm) ; 280 285 MPI_Intercomm_merge(interComm,high, &intraComm ) ; … … 341 346 CXios::setXiosComm(xiosGlobalComm) ; 342 347 343 MPI_Comm commUnfree ;344 MPI_Comm_dup(clientComm, &commUnfree ) ;345 346 348 } 347 349 … … 519 521 finalizePoolRessource() ; 520 522 CContext::removeAllContexts() ; // free memory for related context 521 522 523 CXios::getMpiGarbageCollector().release() ; // release unfree MPI ressources 524 MPI_Comm xiosComm=CXios::getXiosComm() ; 525 MPI_Comm_free(&xiosComm) ; 523 526 CCommTrack::dumpComm() ; 524 527 if (!is_MPI_Initialized)
Note: See TracChangeset
for help on using the changeset viewer.