Ignore:
Timestamp:
10/05/15 15:32:51 (6 years ago)
Author:
rlacroix
Message:

Fix: The "buffer_factor_size" was applied twice to the server buffers.

Also reduce the visibility of the member variables of CServerBuffer.

File:
1 edited

Legend:

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

    r591 r717  
    99  CServerBuffer::CServerBuffer(StdSize buffSize) 
    1010  { 
    11     bufferSizeByClient= buffSize * 2 * CXios::bufferServerFactorSize; //::bufferSize*CXios::bufferServerFactorSize ; 
    12     size=bufferSizeByClient ; 
    13     first=0 ; 
    14     current=1 ; 
    15     end=size ; 
    16     buffer=new char[size] ;  // change later for MPI_ALLOC_MEM later 
     11    size = 2 * buffSize; 
     12    first = 0; 
     13    current = 1; 
     14    end = size; 
     15    buffer = new char[size]; // use MPI_ALLOC_MEM later? 
    1716  } 
    1817 
Note: See TracChangeset for help on using the changeset viewer.