Ignore:
Timestamp:
08/03/17 15:50:40 (7 years ago)
Author:
mhnguyen
Message:

Fixing a bug on writting axis label

+) Axis label is correctly processed before being written
+) Do some code cleaning and add some comments

Test
+) On Curie
+) OK

File:
1 edited

Legend:

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

    r1215 r1235  
    4242         typedef CAxisAttributes SuperClassAttribute; 
    4343          
    44       public : 
     44      public: 
    4545         enum EEventId 
    4646         { 
     
    5252         } ; 
    5353 
    54  
    55  
    56       public : 
    57  
     54      public: 
    5855         typedef CAxisAttributes RelAttributes; 
    5956         typedef CAxisGroup      RelGroup; 
     
    10198         static ENodeType GetType(void); 
    10299 
    103          static bool dispatchEvent(CEventServer& event); 
    104          static void recvDistributionAttribute(CEventServer& event); 
    105          void recvDistributionAttribute(CBufferIn& buffer) ; 
     100         static bool dispatchEvent(CEventServer& event);          
     101          
    106102         void checkAttributesOnClient(); 
    107103         void checkAttributesOnClientAfterTransformation(const std::vector<int>& globalDim, int orderPositionInGrid, 
     
    122118         bool zoomByIndex(); 
    123119 
    124       public:                 
    125         CArray<StdString,1> label_srv; 
    126         bool hasValue; 
    127         CArray<int,1> globalDimGrid; 
    128         int orderPosInGrid; 
     120      public:  
     121        bool hasValue;         
    129122        CArray<size_t,1> localIndexToWriteOnServer; 
    130123        CArray<int, 1> compressedIndexToWriteOnServer; 
     
    140133         void sendDistributionAttribute(const std::vector<int>& globalDim, int orderPositionInGrid, 
    141134                                        CServerDistributionDescription::ServerDistributionType distType); 
    142          void computeConnectedServer(const std::vector<int>& globalDim, int orderPositionInGrid, 
     135         void computeConnectedClients(const std::vector<int>& globalDim, int orderPositionInGrid, 
    143136                                     CServerDistributionDescription::ServerDistributionType distType); 
    144137 
     
    148141         static void recvNonDistributedAttributes(CEventServer& event); 
    149142         static void recvDistributedAttributes(CEventServer& event); 
     143         static void recvDistributionAttribute(CEventServer& event); 
    150144         void recvNonDistributedAttributes(int rank, CBufferIn& buffer); 
    151145         void recvDistributedAttributes(vector<int>& rank, vector<CBufferIn*> buffers); 
     146         void recvDistributionAttribute(CBufferIn& buffer); 
    152147 
    153148         void setTransformations(const TransMapTypes&); 
     
    167162         std::vector<int> indexesToWrite; 
    168163         int numberWrittenIndexes_, totalNumberWrittenIndexes_, offsetWrittenIndexes_; 
    169          std::vector<int> connectedServerRank_; 
    170          std::map<int, CArray<int,1> > indiSrv_; 
    171          bool hasBounds_; 
     164         std::vector<int> connectedServerRank_;          
     165         bool hasBounds; 
    172166         bool hasLabel;          
    173          bool computedWrittenIndex_; 
     167         bool computedWrittenIndex_;                   
    174168 
    175169       private: 
Note: See TracChangeset for help on using the changeset viewer.