Ignore:
Timestamp:
10/08/15 11:07:01 (6 years ago)
Author:
rlacroix
Message:

Fix: Add a failsafe in case of unexpected request for buffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/context_client.cpp

    r704 r724  
    225225   void CContextClient::newBuffer(int rank) 
    226226   { 
     227      if (!mapBufferSize_.count(rank)) 
     228      { 
     229        error(0) << "WARNING: Unexpected request for buffer to communicate with server " << rank << std::endl; 
     230        mapBufferSize_[rank] = CXios::minBufferSize; 
     231      } 
    227232      buffers[rank] = new CClientBuffer(interComm, rank, mapBufferSize_[rank]); 
    228233   } 
Note: See TracChangeset for help on using the changeset viewer.