Ignore:
Timestamp:
11/15/17 15:21:13 (6 years ago)
Author:
oabramkina
Message:

Adding buffer evaluation in case of reading.

File:
1 edited

Legend:

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

    r1294 r1330  
    166166         void computeDomConServer(); 
    167167         std::map<int, int> getDomConServerSide(); 
    168          std::map<int, StdSize> getAttributesBufferSize(CContextClient* client); 
    169          std::map<int, StdSize> getDataBufferSize(CContextClient* client, const std::string& id = ""); 
     168         std::map<int, StdSize> getAttributesBufferSize(CContextClient* client, bool bufferForWriting = false); 
     169         std::map<int, StdSize> getDataBufferSize(CContextClient* client, const std::string& id = "", bool bufferForWriting = false); 
    170170         std::vector<StdString> getDomainList(); 
    171171         std::vector<StdString> getAxisList(); 
     
    326326        int numberWrittenIndexes_, totalNumberWrittenIndexes_, offsetWrittenIndexes_; 
    327327 
    328 /** Map storing local ranks of connected receivers. Key = size of receiver's intracomm */ 
     328/** Map storing local ranks of connected receivers. Key = size of receiver's intracomm. 
     329  * It is calculated in computeConnectedClients(). */ 
    329330        std::map<int, std::vector<int> > connectedServerRank_; 
    330331 
    331 /** Map storing the size of data to be send. Key = size of receiver's intracomm */ 
     332/** Map storing the size of data to be send. Key = size of receiver's intracomm 
     333  * It is calculated in computeConnectedClients(). */ 
    332334        std::map<int, std::map<int,size_t> > connectedDataSize_; 
     335 
     336/** Ranks of connected receivers in case of reading. It is calculated in recvIndex(). */ 
     337        std::vector<int> connectedServerRankRead_; 
     338 
     339/** Size of data to be send in case of reading. It is calculated in recvIndex(). */ 
     340        std::map<int,size_t> connectedDataSizeRead_; 
    333341 
    334342        bool isDataDistributed_;         
Note: See TracChangeset for help on using the changeset viewer.