Changeset 2274 for XIOS/dev/dev_ym/XIOS_COUPLING/src/node
- Timestamp:
- 12/09/21 12:28:20 (3 years ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING/src/node
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/axis.cpp
r2267 r2274 59 59 } 60 60 CATCH 61 62 void CAxis::releaseStaticAllocation(void) 63 { 64 transformationMapList_.clear() ; 65 CTransformation<CAxis>::unregisterAllTransformations() ; 66 CGridTransformationFactory<CAxis>::unregisterAllTransformations() ; 67 } 61 68 62 69 ///--------------------------------------------------------------- -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/axis.hpp
r2270 r2274 23 23 #include "distribution_type.hpp" 24 24 #include "generic_algorithm_transformation.hpp" 25 #include "grid_transformation_factory_impl.hpp" 25 26 26 27 … … 68 69 CAxis(const CAxis & axis); // Not implemented yet. 69 70 CAxis(const CAxis * const axis); // Not implemented yet. 71 static void releaseStaticAllocation(void) ; // release static allocation on heap 70 72 71 73 static CAxis* createAxis(); -
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 -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/context.hpp
r2265 r2274 82 82 /// Destructeur /// 83 83 virtual ~CContext(void); 84 85 static void releaseStaticAllocation(void) ; 84 86 85 87 //--------------------------------------------------------- … … 229 231 // Get context root 230 232 static CContextGroup* getRoot(void); 231 233 232 234 // Set current context 233 235 static void setCurrent(const string& id); … … 329 331 std::vector<std::string> primServerId_; 330 332 331 CRegistry* registryIn ; //!< input registry which is read from file332 CRegistry* registryOut ; //!< output registry which will be written into file at the finalize333 CRegistry* registryIn=nullptr ; //!< input registry which is read from file 334 CRegistry* registryOut=nullptr ; //!< output registry which will be written into file at the finalize 333 335 334 336 -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.cpp
r2267 r2274 25 25 #include "grid_gatherer_connector.hpp" 26 26 #include "transformation_path.hpp" 27 #include "grid_transformation_factory_impl.hpp" 27 28 28 29 #include <algorithm> … … 62 63 } 63 64 65 void CDomain::releaseStaticAllocation(void) 66 { 67 transformationMapList_.clear() ; 68 CTransformation<CDomain>::unregisterAllTransformations() ; 69 CGridTransformationFactory<CDomain>::unregisterAllTransformations() ; 70 } 64 71 ///--------------------------------------------------------------- 65 72 -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.hpp
r2270 r2274 71 71 CDomain(const CDomain & domain); // Not implemented yet. 72 72 CDomain(const CDomain * const domain); // Not implemented yet. 73 73 static void releaseStaticAllocation(void) ; // release static allocation on heap 74 74 75 static CDomain* createDomain(); 75 76 static CDomain* get(const string& id, bool noError=false) ; //<! return domain pointer using id -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/scalar.cpp
r2267 r2274 32 32 { /* Ne rien faire de plus */ } 33 33 34 void CScalar::releaseStaticAllocation(void) 35 { 36 transformationMapList_.clear() ; 37 CTransformation<CScalar>::unregisterAllTransformations() ; 38 CGridTransformationFactory<CScalar>::unregisterAllTransformations() ; 39 } 40 34 41 std::map<StdString, ETranformationType> CScalar::transformationMapList_ = std::map<StdString, ETranformationType>(); 35 42 bool CScalar::dummyTransformationMapList_ = CScalar::initializeTransformationMap(CScalar::transformationMapList_); -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/scalar.hpp
r2270 r2274 20 20 #include "distribution_type.hpp" 21 21 #include "generic_algorithm_transformation.hpp" 22 #include "grid_transformation_factory_impl.hpp" 22 23 23 24 … … 67 68 CScalar(const CScalar & var); // Not implemented yet. 68 69 CScalar(const CScalar * const var); // Not implemented yet. 69 70 static void releaseStaticAllocation(void) ; // release static allocation on heap 71 70 72 /// Destructeur /// 71 73 virtual ~CScalar(void);
Note: See TracChangeset
for help on using the changeset viewer.