Ignore:
Timestamp:
04/14/17 16:53:56 (7 years ago)
Author:
mhnguyen
Message:

Updating 2-level server

+) Make some changes in the way data rebuilt on each level of server
+) Make some changes in the order of functions call during close context to make sure that each server receives the global indexes before calculating index to send to next level
+) Modify some functions to make sure data sent to the correct server pool

Test
+) On Curie
+) Only test_client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/node/axis.hpp

    r1025 r1099  
    4545         enum EEventId 
    4646         { 
    47            EVENT_ID_SERVER_ATTRIBUT, 
     47           EVENT_ID_DISTRIBUTION_ATTRIBUTE, 
    4848           EVENT_ID_INDEX, 
    4949           EVENT_ID_DISTRIBUTED_VALUE, 
     
    108108         static ENodeType GetType(void); 
    109109 
    110          // void sendServerAttribut(const std::vector<int>& globalDim, int orderPositionInGrid, 
    111          //                         CServerDistributionDescription::ServerDistributionType distType); 
    112110         static bool dispatchEvent(CEventServer& event); 
    113          static void recvServerAttribut(CEventServer& event); 
    114          // void recvServerAttribut(CBufferIn& buffer) ; 
     111         static void recvDistributionAttribute(CEventServer& event); 
     112         void recvDistributionAttribute(CBufferIn& buffer) ; 
    115113         void checkAttributesOnClient(); 
    116114         void checkAttributesOnClientAfterTransformation(const std::vector<int>& globalDim, int orderPositionInGrid, 
     
    142140         void checkZoom(); 
    143141         void checkBounds();          
    144          void sendAttributes(); 
     142         void sendAttributes(const std::vector<int>& globalDim, int orderPositionInGrid, 
     143                             CServerDistributionDescription::ServerDistributionType distType); 
     144         void sendDistributionAttribute(const std::vector<int>& globalDim, int orderPositionInGrid, 
     145                                        CServerDistributionDescription::ServerDistributionType distType); 
    145146         void computeConnectedServer(const std::vector<int>& globalDim, int orderPositionInGrid, 
    146147                                     CServerDistributionDescription::ServerDistributionType distType); 
     
    180181         int global_write_size_; 
    181182 
     183         bool doZoomByIndex_; 
     184 
    182185       private: 
    183186         static bool initializeTransformationMap(std::map<StdString, ETranformationType>& m); 
Note: See TracChangeset for help on using the changeset viewer.