Changeset 829 for XIOS/trunk/src/node/grid.cpp
- Timestamp:
- 03/23/16 16:11:01 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/grid.cpp
r824 r829 457 457 458 458 clientServerMap_->computeServerIndexMapping(clientDistribution_->getGlobalIndex()); 459 const std::map<int, std::vector<size_t> >& globalIndexOnServer = clientServerMap_->getGlobalIndexOnServer();459 const CClientServerMapping::GlobalIndexMap& globalIndexOnServer = clientServerMap_->getGlobalIndexOnServer(); 460 460 461 461 const std::vector<size_t>& globalIndexSendToServer = clientDistribution_->getGlobalDataIndexSendToServer(); 462 std::map<int, std::vector<size_t> >::const_iterator iteGlobalMap, itbGlobalMap, itGlobalMap;463 it bGlobalMap = itGlobalMap = globalIndexOnServer.begin();462 CClientServerMapping::GlobalIndexMap::const_iterator iteGlobalMap, itbGlobalMap, itGlobalMap; 463 itGlobalMap = itbGlobalMap = globalIndexOnServer.begin(); 464 464 iteGlobalMap = globalIndexOnServer.end(); 465 465 … … 488 488 489 489 connectedServerRank_.clear(); 490 for ( std::map<int, std::vector<size_t> >::const_iterator it = globalIndexOnServer.begin(); it != globalIndexOnServer.end(); ++it) {491 connectedServerRank_.push_back(it ->first);490 for (itGlobalMap = itbGlobalMap; itGlobalMap != iteGlobalMap; ++itGlobalMap) { 491 connectedServerRank_.push_back(itGlobalMap->first); 492 492 } 493 493 … … 787 787 list<CMessage> listMsg; 788 788 list<CArray<size_t,1> > listOutIndex; 789 const std::map<int, std::vector<size_t> >& globalIndexOnServer = clientServerMap_->getGlobalIndexOnServer();789 const CClientServerMapping::GlobalIndexMap& globalIndexOnServer = clientServerMap_->getGlobalIndexOnServer(); 790 790 const std::vector<int>& localIndexSendToServer = clientDistribution_->getLocalDataIndexSendToServer(); 791 791 const std::vector<size_t>& globalIndexSendToServer = clientDistribution_->getGlobalDataIndexSendToServer(); … … 821 821 else 822 822 { 823 std::map<int, std::vector<size_t> >::const_iterator iteGlobalMap, itbGlobalMap, itGlobalMap;823 CClientServerMapping::GlobalIndexMap::const_iterator iteGlobalMap, itbGlobalMap, itGlobalMap; 824 824 itbGlobalMap = itGlobalMap = globalIndexOnServer.begin(); 825 825 iteGlobalMap = globalIndexOnServer.end();
Note: See TracChangeset
for help on using the changeset viewer.