Ignore:
Timestamp:
08/04/17 16:03:34 (7 years ago)
Author:
mhnguyen
Message:

Making some changes to allow pools with different number of server

+) Associate context client to each grid distribution (This should be changed in the future)
+) Correct some buffer size estimation
+) Clean some redundant code and add comments

File:
1 edited

Legend:

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

    r1235 r1236  
    7373         int getOffsetWrittenIndexes() const; 
    7474 
    75          std::map<int, StdSize> getAttributesBufferSize(); 
     75         std::map<int, StdSize> getAttributesBufferSize(CContextClient* client); 
    7676 
    7777         /// Test /// 
     
    156156         //! True if and only if the data defined on the axis can be outputted in a compressed way 
    157157         bool isCompressible_; 
    158          std::map<int,int> nbConnectedClients_; // Mapping of number of communicating client to a server 
    159          boost::unordered_map<int, vector<size_t> > indSrv_; // Global index of each client sent to server 
    160          std::map<int, vector<int> > indWrittenSrv_; // Global written index of each client sent to server 
     158         std::map<CContextClient*, map<int,int> > nbSenders; // Mapping of number of communicating client to a server 
     159         std::map<CContextClient*, boost::unordered_map<int, vector<size_t> > > indSrv_; // Global index of each client sent to server 
     160         // std::map<int, vector<int> > indWrittenSrv_; // Global written index of each client sent to server 
    161161         boost::unordered_map<size_t,size_t> globalLocalIndexMap_; 
    162162         std::vector<int> indexesToWrite; 
    163163         int numberWrittenIndexes_, totalNumberWrittenIndexes_, offsetWrittenIndexes_; 
    164          std::vector<int> connectedServerRank_;          
     164         std::map<CContextClient*, std::vector<int> > connectedServerRank_;          
    165165         bool hasBounds; 
    166166         bool hasLabel;          
Note: See TracChangeset for help on using the changeset viewer.