Changeset 988 for XIOS/trunk/src/filter


Ignore:
Timestamp:
11/16/16 14:53:16 (7 years ago)
Author:
mhnguyen
Message:

Correcting a bug on reading non-distributed data in server mode.

+) Non distributed data read by all servers then transfered back to ALL clients

Test
+) On Curie
+) Work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/filter/source_filter.cpp

    r932 r988  
    4848    packet->status = CDataPacket::NO_ERROR; 
    4949 
    50     if (data.size() != grid->storeIndex_toSrv.size()) 
     50    // if (data.size() != grid->storeIndex_toSrv.size()) 
     51    if (data.size() != grid->storeIndex_fromSrv.size()) 
    5152      ERROR("CSourceFilter::streamDataFromServer(CDate date, const std::map<int, CArray<double, 1> >& data)", 
    5253            << "Incoherent data received from servers," 
    53             << " expected " << grid->storeIndex_toSrv.size() << " chunks but " << data.size() << " were given."); 
     54            << " expected " << grid->storeIndex_fromSrv.size() << " chunks but " << data.size() << " were given."); 
    5455 
    5556    packet->data.resize(grid->storeIndex_client.numElements()); 
     
    5758    for (it = data.begin(); it != itEnd; it++) 
    5859    { 
    59       CArray<int,1>& index = grid->storeIndex_toSrv[it->first]; 
    60  
     60      // CArray<int,1>& index = grid->storeIndex_toSrv[it->first]; 
     61      CArray<int,1>& index = grid->storeIndex_fromSrv[it->first]; 
    6162      for (int n = 0; n < index.numElements(); n++) 
    6263        packet->data(index(n)) = it->second(n); 
Note: See TracChangeset for help on using the changeset viewer.