- Timestamp:
- 03/15/22 14:56:16 (3 years ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING/src
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/client.cpp
r2274 r2310 492 492 CContext::removeAllContexts() ; // free memory for related context 493 493 494 494 CXios::getMpiGarbageCollector().release() ; // release unfree MPI ressources 495 495 if (!is_MPI_Initialized) 496 496 { -
XIOS/dev/dev_ym/XIOS_COUPLING/src/context_client.cpp
r2287 r2310 335 335 MPI_Intercomm_create(commSelf_, 0, interCommMerged_, clientSize+rank, 0, &interComm) ; 336 336 MPI_Intercomm_merge(interComm, false, &winComm_[rank]) ; 337 CXios::getMpiGarbageCollector().registerCommunicator(winComm_[rank]) ; 337 338 MPI_Comm_free(&interComm) ; 338 339 windows_[rank].resize(2) ; 340 339 341 MPI_Win_create_dynamic(MPI_INFO_NULL, winComm_[rank], &windows_[rank][0]); 342 CXios::getMpiGarbageCollector().registerWindow(windows_[rank][0]) ; 343 340 344 MPI_Win_create_dynamic(MPI_INFO_NULL, winComm_[rank], &windows_[rank][1]); 345 CXios::getMpiGarbageCollector().registerWindow(windows_[rank][1]) ; 346 341 347 CTimer::get("create Windows").suspend() ; 342 348 } -
XIOS/dev/dev_ym/XIOS_COUPLING/src/context_server.cpp
r2309 r2310 162 162 MPI_Intercomm_create(commSelf_, 0, interCommMerged_, rank, 0 , &interComm) ; 163 163 MPI_Intercomm_merge(interComm, true, &winComm_[rank]) ; 164 CXios::getMpiGarbageCollector().registerCommunicator(winComm_[rank]) ; 165 MPI_Comm_free(&interComm) ; 164 166 windows_[rank].resize(2) ; 165 167 MPI_Win_create_dynamic(MPI_INFO_NULL, winComm_[rank], &windows_[rank][0]); 168 CXios::getMpiGarbageCollector().registerWindow(windows_[rank][0]) ; 166 169 MPI_Win_create_dynamic(MPI_INFO_NULL, winComm_[rank], &windows_[rank][1]); 170 CXios::getMpiGarbageCollector().registerWindow(windows_[rank][1]) ; 167 171 CTimer::get("create Windows").suspend() ; 168 172 MPI_Barrier(winComm_[rank]) ; -
XIOS/dev/dev_ym/XIOS_COUPLING/src/cxios.cpp
r2282 r2310 59 59 CRegistryManager* CXios::registryManager_=nullptr ; 60 60 61 CMpiGarbageCollector CXios::MpiGarbageCollector_ ; 62 61 63 //! Parse configuration file and create some objects from it 62 64 void CXios::initialize() -
XIOS/dev/dev_ym/XIOS_COUPLING/src/cxios.hpp
r2209 r2310 11 11 #include "coupler_manager.hpp" 12 12 #include "registry_manager.hpp" 13 #include "mpi_garbage_collector.hpp" 13 14 14 15 namespace xios … … 75 76 static CContextsManager* contextsManager_ ; 76 77 static CDaemonsManager* daemonsManager_ ; 77 78 78 static CMpiGarbageCollector MpiGarbageCollector_ ; 79 public: 80 static CMpiGarbageCollector& getMpiGarbageCollector(void) { return MpiGarbageCollector_ ; } 79 81 public: 80 82 //! Setting xios to use server mode … … 111 113 static CDaemonsManager* getDaemonsManager(void) { return daemonsManager_ ;} 112 114 static CPoolRessource* getPoolRessource(void) ; 113 115 114 116 static MPI_Comm getGlobalComm(void) { return globalComm ;} 115 117 static MPI_Comm getXiosComm(void) { return xiosComm ;} -
XIOS/dev/dev_ym/XIOS_COUPLING/src/server.cpp
r2290 r2310 320 320 CContext::removeAllContexts() ; // free memory for related context 321 321 322 CXios::getMpiGarbageCollector().release() ; // release unfree MPI ressources 323 322 324 if (!is_MPI_Initialized) 323 325 {
Note: See TracChangeset
for help on using the changeset viewer.