Changeset 860 for XIOS/trunk/src/client_server_mapping_distributed.cpp
- Timestamp:
- 06/09/16 11:32:01 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/client_server_mapping_distributed.cpp
r843 r860 37 37 { 38 38 ccDHT_->computeIndexInfoMapping(globalIndexOnClient); 39 const boost::unordered_map<size_t,int>& infoIndexMap = (ccDHT_->getInfoIndexMap());40 boost::unordered_map<size_t,int>::const_iterator itb = infoIndexMap.begin(), ite = infoIndexMap.end(), it;39 const CClientClientDHTInt::Index2VectorInfoTypeMap& infoIndexMap = (ccDHT_->getInfoIndexMap()); 40 CClientClientDHTInt::Index2VectorInfoTypeMap::const_iterator itb = infoIndexMap.begin(), ite = infoIndexMap.end(), it; 41 41 std::vector<size_t> nbInfoIndex(ccDHT_->getNbClient(),0); 42 42 43 43 for (it = itb; it != ite; ++it) 44 44 { 45 ++nbInfoIndex[it->second ];45 ++nbInfoIndex[it->second[0]]; 46 46 } 47 47 … … 57 57 for (it = itb; it != ite; ++it) 58 58 { 59 indexGlobalOnServer_[it->second ][nbInfoIndex[it->second]] = (it->first);60 ++nbInfoIndex[it->second ];59 indexGlobalOnServer_[it->second[0]][nbInfoIndex[it->second[0]]] = (it->first); 60 ++nbInfoIndex[it->second[0]]; 61 61 } 62 62 }
Note: See TracChangeset
for help on using the changeset viewer.