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/domain.cpp

    r1325 r1330  
    129129    * \return A map associating the server rank with its minimum buffer size. 
    130130    */ 
    131    std::map<int, StdSize> CDomain::getAttributesBufferSize(CContextClient* client) 
    132    { 
    133      CContext* context = CContext::getCurrent(); 
    134      // For now the assumption is that secondary server pools consist of the same number of procs. 
    135      // CHANGE the line below if the assumption changes. 
    136      // CContextClient* client = (0 != context->clientPrimServer.size()) ? context->clientPrimServer[0] : context->client; 
    137  
    138      std::map<int, StdSize> attributesSizes = getMinimumBufferSizeForAttributes(); 
     131   std::map<int, StdSize> CDomain::getAttributesBufferSize(CContextClient* client, bool bufferForWriting /*= false*/) 
     132   { 
     133 
     134     std::map<int, StdSize> attributesSizes = getMinimumBufferSizeForAttributes(client); 
    139135 
    140136     if (client->isServerLeader()) 
Note: See TracChangeset for help on using the changeset viewer.