Ignore:
Timestamp:
07/26/17 10:34:17 (7 years ago)
Author:
oabramkina
Message:

Minor modifications:

  • changing sizes of client buffers from int to size_t
  • adding attribute maxBufferSize.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/node/context.cpp

    r1215 r1227  
    313313       if (it->second > bufferSize[it->first]) bufferSize[it->first] = it->second; 
    314314 
    315      // Apply the buffer size factor and check that we are above the minimum buffer size 
     315     // Apply the buffer size factor, check that we are above the minimum buffer size and below the maximum size 
    316316     ite = bufferSize.end(); 
    317317     for (it = bufferSize.begin(); it != ite; ++it) 
     
    319319       it->second *= CXios::bufferSizeFactor; 
    320320       if (it->second < minBufferSize) it->second = minBufferSize; 
     321       if (it->second > CXios::maxBufferSize) it->second = CXios::maxBufferSize; 
    321322     } 
    322323 
Note: See TracChangeset for help on using the changeset viewer.