Changeset 829 for XIOS/trunk/src/node
- Timestamp:
- 03/23/16 16:11:01 (8 years ago)
- Location:
- XIOS/trunk/src/node
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/axis.cpp
r823 r829 433 433 CServerDistributionDescription serverDescriptionGlobal(globalDim, nbServer); 434 434 int distributedDimensionOnServer = serverDescriptionGlobal.getDimensionDistributed(); 435 std::map<int, std::vector<size_t> >globalIndexAxisOnServer;435 CClientServerMapping::GlobalIndexMap globalIndexAxisOnServer; 436 436 if (distributedDimensionOnServer == orderPositionInGrid) // So we have distributed axis on client side and also on server side* 437 437 { … … 472 472 } 473 473 474 std::map<int, std::vector<size_t> >::const_iterator it = globalIndexAxisOnServer.begin(),475 ite = globalIndexAxisOnServer.end();474 CClientServerMapping::GlobalIndexMap::const_iterator it = globalIndexAxisOnServer.begin(), 475 ite = globalIndexAxisOnServer.end(); 476 476 std::vector<size_t>::const_iterator itbVec = (globalAxisZoom).begin(), 477 477 iteVec = (globalAxisZoom).end(); … … 505 505 if (!indSrv_.empty()) 506 506 { 507 std::map<int, vector<size_t> >::const_iterator itIndSrv = indSrv_.begin(), 508 iteIndSrv = indSrv_.end(); 507 509 connectedServerRank_.clear(); 508 for ( it = indSrv_.begin(); it != indSrv_.end(); ++it)509 connectedServerRank_.push_back(it ->first);510 for (; itIndSrv != iteIndSrv; ++itIndSrv) 511 connectedServerRank_.push_back(itIndSrv->first); 510 512 } 511 513 nbConnectedClients_ = CClientServerMapping::computeConnectedClients(client->serverSize, client->clientSize, client->intraComm, connectedServerRank_); -
XIOS/trunk/src/node/domain.cpp
r823 r829 1386 1386 client->intraComm); 1387 1387 clientServerMap->computeServerIndexMapping(globalIndexDomain); 1388 const std::map<int, std::vector<size_t> >& globalIndexDomainOnServer = clientServerMap->getGlobalIndexOnServer();1389 1390 std::map<int, std::vector<size_t> >::const_iterator it= globalIndexDomainOnServer.begin(),1391 ite = globalIndexDomainOnServer.end();1388 const CClientServerMapping::GlobalIndexMap& globalIndexDomainOnServer = clientServerMap->getGlobalIndexOnServer(); 1389 1390 CClientServerMapping::GlobalIndexMap::const_iterator it = globalIndexDomainOnServer.begin(), 1391 ite = globalIndexDomainOnServer.end(); 1392 1392 typedef XIOSBinarySearchWithIndex<size_t> BinarySearch; 1393 1393 std::vector<int>::iterator itVec; -
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.