Changeset 907


Ignore:
Timestamp:
07/28/16 13:35:00 (5 years ago)
Author:
mhnguyen
Message:

Correcting a minor thing of previous commit

+) Make sure the number of index correct even number of server is larger than number of client

File:
1 edited

Legend:

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

    r906 r907  
    4545  const CClientClientDHTInt::Index2VectorInfoTypeMap& infoIndexMap = (ccDHT_->getInfoIndexMap()); 
    4646  CClientClientDHTInt::Index2VectorInfoTypeMap::const_iterator itb = infoIndexMap.begin(), ite = infoIndexMap.end(), it; 
    47   std::vector<size_t> nbInfoIndex(nbServer,0); 
     47  std::vector<size_t> nbInfoIndex(std::max(ccDHT_->getNbClient(),nbServer),0); 
    4848 
    4949  for (it = itb; it != ite; ++it) 
Note: See TracChangeset for help on using the changeset viewer.