Changeset 2274 for XIOS/dev/dev_ym/XIOS_COUPLING/src/node/context.cpp
- Timestamp:
- 12/09/21 12:28:20 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/context.cpp
r2265 r2274 63 63 for (std::vector<CContextClient*>::iterator it = clientPrimServer.begin(); it != clientPrimServer.end(); it++) delete *it; 64 64 for (std::vector<CContextServer*>::iterator it = serverPrimServer.begin(); it != serverPrimServer.end(); it++) delete *it; 65 65 if (registryIn!=nullptr) delete registryIn ; 66 if (registryOut!=nullptr) delete registryOut ; 66 67 } 67 68 … … 100 101 CATCH 101 102 103 void CContext::releaseStaticAllocation(void) 104 TRY 105 { 106 CDomain::releaseStaticAllocation(); 107 CAxis::releaseStaticAllocation(); 108 CScalar::releaseStaticAllocation(); 109 if (root) root.reset() ; 110 } 111 CATCH 112 102 113 //---------------------------------------------------------------- 103 114 … … 326 337 #include "node_type.conf" 327 338 */ 339 CObjectFactory::deleteAllContexts<CContext>() ; 340 CObjectFactory::deleteAllContexts<CContextGroup>() ; 341 CObjectFactory::clearCurrentContextId(); 342 CGroupFactory::clearCurrentContextId(); 328 343 } 329 344 ///--------------------------------------------------------------- … … 538 553 if (commRank==0) 539 554 { 540 if (attached_mode) CXios::getContextsManager()->createServerContext(CClient::getPoolRessource()->getId(), CXios::defaultServerId, 0, getContextId()) ;555 if (attached_mode) CXios::getContextsManager()->createServerContext(CClient::getPoolRessource()->getId(), getContextId()+"_"+CXios::defaultServerId, 0, getContextId()) ; 541 556 else if (CXios::usingServer2) CXios::getContextsManager()->createServerContext(CXios::defaultPoolId, CXios::defaultGathererId, 0, getContextId()) ; 542 557 else CXios::getContextsManager()->createServerContext(CXios::defaultPoolId, CXios::defaultServerId, 0, getContextId()) ; … … 547 562 if (attached_mode) 548 563 { 549 parentServerContext_->createIntercomm(CClient::getPoolRessource()->getId(), CXios::defaultServerId, 0, getContextId(), intraComm_,564 parentServerContext_->createIntercomm(CClient::getPoolRessource()->getId(), getContextId()+"_"+CXios::defaultServerId, 0, getContextId(), intraComm_, 550 565 interCommClient, interCommServer) ; 551 566 int type ; … … 811 826 closeAllFile(); 812 827 client->releaseBuffers(); 828 server->releaseBuffers(); 813 829 } 814 830
Note: See TracChangeset
for help on using the changeset viewer.