Changeset 831 for XIOS/trunk/src/transformation/transformation_mapping.cpp
- Timestamp:
- 03/23/16 16:11:09 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/transformation_mapping.cpp
r829 r831 27 27 28 28 CDistributionClient distributionClientSrc(client->clientRank, gridSource_); 29 30 const std::vector<size_t>& globalIndexGridSrc = distributionClientSrc.getGlobalDataIndexSendToServer(); //gridSource_->getDistributionClient()->getGlobalDataIndexSendToServer(); 31 const std::vector<int>& localIndexGridSrc = distributionClientSrc.getLocalDataIndexSendToServer(); 29 const CDistributionClient::GlobalLocalDataMap& globalLocalIndexGridSrc = distributionClientSrc.getGlobalLocalDataSendToServer(); 30 CDistributionClient::GlobalLocalDataMap::const_iterator itIndex = globalLocalIndexGridSrc.begin(), iteIndex = globalLocalIndexGridSrc.end(); 32 31 33 32 // Mapping of global index and pair containing rank and local index 34 33 CClientClientDHTPairIntInt::Index2InfoTypeMap globalIndexOfServer; 35 int globalIndexSize = globalIndexGridSrc.size(); 36 PairIntInt pii; 37 for (int idx = 0; idx < globalIndexSize; ++idx) 38 { 39 pii.first = clientRank; 40 pii.second = localIndexGridSrc[idx]; 41 globalIndexOfServer[globalIndexGridSrc[idx]] = pii; //std::make_pair(clientRank, localIndexGridSrc[idx]); 34 PairIntInt pairIntInt; 35 for (; itIndex != iteIndex; ++itIndex) 36 { 37 pairIntInt.first = clientRank; 38 pairIntInt.second = itIndex->second; 39 globalIndexOfServer[itIndex->first] = pairIntInt; 42 40 } 43 41
Note: See TracChangeset
for help on using the changeset viewer.