Changeset 1930 for XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.hpp
- Timestamp:
- 09/10/20 13:51:02 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.hpp
r1918 r1930 20 20 #include "element.hpp" 21 21 #include "local_connector.hpp" 22 #include "scatterer_connector.hpp" 22 23 #include "gatherer_connector.hpp" 24 #include "distribution_type.hpp" 25 23 26 24 27 namespace xios { … … 54 57 EVENT_ID_AREA, 55 58 EVENT_ID_DATA_INDEX, EVENT_ID_SERVER_ATTRIBUT, 56 EVENT_ID_DOMAIN_DISTRIBUTION 59 EVENT_ID_DOMAIN_DISTRIBUTION, EVENT_ID_SEND_DISTRIBUTED_ATTRIBUTE 57 60 } ; 58 61 … … 220 223 private: 221 224 222 static void recvDomainDistribution(CEventServer& event) ;223 void receivedDomainDistribution(CEventServer& event, int phasis) ;224 225 226 225 void sendDomainDistribution(CContextClient* client, const string& domainId="") ; //for testing 227 226 void sendAttributes(); // ym obsolete -> to be removed … … 310 309 static bool _dummyTransformationMapList; 311 310 312 311 ////////////////////////////////////////////////////////////////////////////////////// 312 // this part is related to distribution, element definition, views and connectors // 313 ////////////////////////////////////////////////////////////////////////////////////// 313 314 private: 314 315 CLocalElement* localElement_ = nullptr ; … … 327 328 CLocalConnector* modelToWorkflowConnector_ ; 328 329 void computeModelToWorkflowConnector(void) ; 330 public: 331 CLocalConnector* getModelToWorkflowConnector(void) { if (modelToWorkflowConnector_==nullptr) computeModelToWorkflowConnector() ; return modelToWorkflowConnector_ ;} 332 333 public: 334 void computeRemoteElement(CContextClient* client, EDistributionType) ; 335 void distributeToServer(CContextClient* client, std::map<int, CArray<size_t,1>>& globalIndex, const string& domainId="") ; 336 337 static void recvDomainDistribution(CEventServer& event) ; 338 void receivedDomainDistribution(CEventServer& event, int phasis) ; 339 340 void sendDistributedAttributes(CContextClient* client, CScattererConnector& scaterrerConnector, const string& domainId) ; 341 static void recvDistributedAttributes(CEventServer& event) ; 342 void recvDistributedAttributes(CEventServer& event, const string& type) ; 343 private: 344 map<CContextClient*, CDistributedElement*> remoteElement_ ; 345 public: 346 CDistributedElement* getRemoteElement(CContextClient* client) {return remoteElement_[client] ;} 347 private: 348 map<CContextClient*, CScattererConnector*> clientToServerConnector_ ; 349 public: 350 CScattererConnector* getClientToServerConnector(CContextClient* client) { return clientToServerConnector_[client] ;} 351 private: 329 352 CGathererConnector* gathererConnector_ ; 330 331 public: 332 CLocalConnector* getModelToWorkflowConnector(void) { if (modelToWorkflowConnector_==nullptr) computeModelToWorkflowConnector() ; return modelToWorkflowConnector_ ;} 333 353 CGathererConnector* serverFromClientConnector_ ; 354 CDistributedElement* elementFrom_ ; 355 public: 356 CGathererConnector* getServerFromClientConnector(void) { return serverFromClientConnector_ ;} 357 358 359 334 360 DECLARE_REF_FUNC(Domain,domain) 335 361
Note: See TracChangeset
for help on using the changeset viewer.