Ignore:
Timestamp:
09/24/20 12:12:53 (4 years ago)
Author:
ymipsl
Message:

Xios coupling branch

  • Update connectors mechanism for scalar, similarly for domain and axis
  • add mask attribute to scalar

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/scalar.hpp

    r1934 r1940  
    4141         , public CScalarAttributes 
    4242      { 
     43           friend class CScalarGroup; 
     44 
    4345            /// typedef /// 
    4446            typedef CObjectTemplate<CScalar>   SuperClass; 
    4547            typedef CScalarAttributes SuperClassAttribute; 
    4648 
    47             friend class CScalarGroup; 
     49         public: 
     50           enum EEventId 
     51           { 
     52             EVENT_ID_SCALAR_DISTRIBUTION, 
     53             EVENT_ID_SEND_DISTRIBUTED_ATTRIBUTE, 
     54           } ; 
     55           static bool dispatchEvent(CEventServer& event);       
     56            
    4857 
    4958         public : 
     
    166175       public: 
    167176         void computeRemoteElement(CContextClient* client, EDistributionType) ; 
    168          void distributeToServer(CContextClient* client, std::map<int, CArray<size_t,1>>& globalIndex) ; 
     177         void distributeToServer(CContextClient* client, std::map<int, CArray<size_t,1>>& globalIndex, const string& scalarId="") ; 
     178         static void recvScalarDistribution(CEventServer& event) ; 
     179         void receivedScalarDistribution(CEventServer& event, int phasis) ; 
     180         void sendDistributedAttributes(CContextClient* client, CScattererConnector& scattererConnector, const string& scalarId) ; 
     181         static void recvDistributedAttributes(CEventServer& event) ; 
     182         void recvDistributedAttributes(CEventServer& event, const string& type) ; 
     183 
    169184       private: 
    170185         map<CContextClient*, CDistributedElement*> remoteElement_ ; 
     
    179194         CGathererConnector*  gathererConnector_ ; 
    180195         CGathererConnector* serverFromClientConnector_ ; 
     196         CDistributedElement* elementFrom_ ; 
    181197       public: 
    182198        CGathererConnector* getServerFromClientConnector(void) { return serverFromClientConnector_ ;} 
Note: See TracChangeset for help on using the changeset viewer.