Changeset 2267 for XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.hpp
- Timestamp:
- 12/01/21 16:52:24 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.hpp
r2206 r2267 328 328 329 329 private: 330 CGridLocalElements*gridLocalElements_= nullptr ;330 shared_ptr<CGridLocalElements> gridLocalElements_= nullptr ; 331 331 void computeGridLocalElements(void) ; 332 332 public: 333 CGridLocalElements*getGridLocalElements(void) { if (gridLocalElements_==nullptr) computeGridLocalElements() ; return gridLocalElements_ ;}334 335 private: 336 CGridLocalConnector*modelToWorkflowConnector_ = nullptr ;333 shared_ptr<CGridLocalElements> getGridLocalElements(void) { if (gridLocalElements_==nullptr) computeGridLocalElements() ; return gridLocalElements_ ;} 334 335 private: 336 shared_ptr<CGridLocalConnector> modelToWorkflowConnector_ = nullptr ; 337 337 public: 338 338 void computeModelToWorkflowConnector(void) ; 339 CGridLocalConnector*getModelToWorkflowConnector(void) { if (modelToWorkflowConnector_==nullptr) computeModelToWorkflowConnector() ; return modelToWorkflowConnector_;}340 341 private: 342 CGridLocalConnector*workflowToModelConnector_ = nullptr;339 shared_ptr<CGridLocalConnector> getModelToWorkflowConnector(void) { if (modelToWorkflowConnector_==nullptr) computeModelToWorkflowConnector() ; return modelToWorkflowConnector_;} 340 341 private: 342 shared_ptr<CGridLocalConnector> workflowToModelConnector_ = nullptr; 343 343 public: 344 344 void computeWorkflowToModelConnector(void) ; 345 CGridLocalConnector*getWorkflowToModelConnector(void) { if (workflowToModelConnector_==nullptr) computeWorkflowToModelConnector() ; return workflowToModelConnector_;}345 shared_ptr<CGridLocalConnector> getWorkflowToModelConnector(void) { if (workflowToModelConnector_==nullptr) computeWorkflowToModelConnector() ; return workflowToModelConnector_;} 346 346 347 347 public: //? … … 350 350 351 351 private: 352 CGridLocalConnector*workflowToFullConnector_ = nullptr;352 shared_ptr<CGridLocalConnector> workflowToFullConnector_ = nullptr; 353 353 public: 354 354 void computeWorkflowToFullConnector(void) ; 355 CGridLocalConnector*getWorkflowToFullConnector(void) { if (workflowToFullConnector_==nullptr) computeWorkflowToFullConnector() ; return workflowToFullConnector_;}356 357 private: 358 CGridLocalConnector*fullToWorkflowConnector_ = nullptr;355 shared_ptr<CGridLocalConnector> getWorkflowToFullConnector(void) { if (workflowToFullConnector_==nullptr) computeWorkflowToFullConnector() ; return workflowToFullConnector_;} 356 357 private: 358 shared_ptr<CGridLocalConnector> fullToWorkflowConnector_ = nullptr; 359 359 public: 360 360 void computeFullToWorkflowConnector(void) ; 361 CGridLocalConnector*getFullToWorkflowConnector(void) { if (fullToWorkflowConnector_==nullptr) computeFullToWorkflowConnector() ; return fullToWorkflowConnector_;}361 shared_ptr<CGridLocalConnector> getFullToWorkflowConnector(void) { if (fullToWorkflowConnector_==nullptr) computeFullToWorkflowConnector() ; return fullToWorkflowConnector_;} 362 362 363 363 364 364 365 365 private: 366 CGridGathererConnector*clientFromClientConnector_ = nullptr ;367 public: 368 CGridGathererConnector*getClientFromClientConnector(void) { if (clientFromClientConnector_==nullptr) computeClientFromClientConnector() ; return clientFromClientConnector_;}366 shared_ptr<CGridGathererConnector> clientFromClientConnector_ = nullptr ; 367 public: 368 shared_ptr<CGridGathererConnector> getClientFromClientConnector(void) { if (clientFromClientConnector_==nullptr) computeClientFromClientConnector() ; return clientFromClientConnector_;} 369 369 void computeClientFromClientConnector(void) ; 370 370 371 371 private: 372 map<CContextClient*, CGridScattererConnector*> clientToClientConnector_ ;373 public: 374 CGridScattererConnector*getClientToClientConnector(CContextClient* client) { return clientToClientConnector_[client] ;} // make some test to see if connector exits for the given client372 map<CContextClient*, shared_ptr<CGridScattererConnector>> clientToClientConnector_ ; 373 public: 374 shared_ptr<CGridScattererConnector> getClientToClientConnector(CContextClient* client) { return clientToClientConnector_[client] ;} // make some test to see if connector exits for the given client 375 375 376 376 377 377 private: 378 map<CContextClient*, CGridGathererConnector*> clientFromServerConnector_ ;379 public: 380 CGridGathererConnector*getClientFromServerConnector(CContextClient* client) { return clientFromServerConnector_[client];}378 map<CContextClient*,shared_ptr<CGridGathererConnector>> clientFromServerConnector_ ; 379 public: 380 shared_ptr<CGridGathererConnector> getClientFromServerConnector(CContextClient* client) { return clientFromServerConnector_[client];} 381 381 void computeClientFromServerConnector(void) ; 382 382 383 383 private: 384 CGridScattererConnector*serverToClientConnector_=nullptr ;385 public: 386 CGridScattererConnector*getServerToClientConnector(void) { if (serverToClientConnector_==nullptr) computeServerToClientConnector() ; return serverToClientConnector_;}384 shared_ptr<CGridScattererConnector> serverToClientConnector_=nullptr ; 385 public: 386 shared_ptr<CGridScattererConnector> getServerToClientConnector(void) { if (serverToClientConnector_==nullptr) computeServerToClientConnector() ; return serverToClientConnector_;} 387 387 void computeServerToClientConnector(void) ; 388 388 private: 389 map<CContextClient*, CGridScattererConnector*> clientToServerConnector_ ;390 public: 391 CGridScattererConnector*getClientToServerConnector(CContextClient* client) { return clientToServerConnector_[client] ;} // make some test to see if connector exits for the given client389 map<CContextClient*, shared_ptr<CGridScattererConnector>> clientToServerConnector_ ; 390 public: 391 shared_ptr<CGridScattererConnector> getClientToServerConnector(CContextClient* client) { return clientToServerConnector_[client] ;} // make some test to see if connector exits for the given client 392 392 393 393 private: 394 CGridGathererConnector*serverFromClientConnector_ = nullptr ;395 public: 396 CGridGathererConnector*getServerFromClientConnector(void) { if (serverFromClientConnector_==nullptr) computeServerFromClientConnector() ; return serverFromClientConnector_;}394 shared_ptr<CGridGathererConnector> serverFromClientConnector_ = nullptr ; 395 public: 396 shared_ptr<CGridGathererConnector> getServerFromClientConnector(void) { if (serverFromClientConnector_==nullptr) computeServerFromClientConnector() ; return serverFromClientConnector_;} 397 397 void computeServerFromClientConnector(void) ; 398 398
Note: See TracChangeset
for help on using the changeset viewer.