Ignore:
Timestamp:
04/22/22 11:46:41 (2 years ago)
Author:
ymipsl
Message:

Fix Deadlock from reading phase.
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/context_client.cpp

    r2324 r2326  
    449449   void CContextClient::setBufferSize(const std::map<int,StdSize>& mapSize) 
    450450   { 
    451      for(auto& it : mapSize)  
    452       buffers[it.first]->fixBufferSize(std::max(CXios::minBufferSize*1.0,std::min(it.second*CXios::bufferSizeFactor*1.01,CXios::maxBufferSize*1.0))); 
     451     setFixedBuffer() ; 
     452     for(auto& it : mapSize) 
     453     { 
     454      size_t size=std::max(CXios::minBufferSize*1.0,std::min(it.second*CXios::bufferSizeFactor*1.01,CXios::maxBufferSize*1.0)) ; 
     455      mapBufferSize_[it.first]=size ; 
     456      if (buffers.count(it.first)>0) buffers[it.first]->fixBufferSize(size); 
     457     } 
    453458   } 
    454459 
Note: See TracChangeset for help on using the changeset viewer.