Changeset 721 for XIOS/trunk/src/node/grid.cpp
- Timestamp:
- 10/06/15 17:17:11 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/grid.cpp
r720 r721 18 18 #include "grid_transformation.hpp" 19 19 #include "grid_generate.hpp" 20 #include "client_client_dht.hpp"21 20 22 21 namespace xios { … … 396 395 clientDistribution_->isDataDistributed()); 397 396 398 CClientClientDHT clientDht(serverDistributionDescription.getGlobalIndexRange(),399 client->intraComm,400 clientDistribution_->isDataDistributed());401 clientDht.computeServerIndexMapping(clientDistribution_->getGlobalIndex());402 const std::map<int, std::vector<size_t> >& globalIndexOnServer0 = clientDht.getGlobalIndexOnServer();403 404 std::map<int, std::vector<size_t> >::const_iterator itbTmp, itTmp, iteTmp;405 itbTmp = globalIndexOnServer0.begin(); iteTmp = globalIndexOnServer0.end();406 for (itTmp = itbTmp; itTmp != iteTmp; ++itTmp)407 {408 const std::vector<size_t>& tmpVec = itTmp->second; info << "tmpVec0. Rank " << itTmp->first << ". Size = " << tmpVec.size() << ". " ;409 for (int i = 0; i < tmpVec.size(); ++i) info << tmpVec[i] << " ";410 info << std::endl;411 }412 //413 397 clientServerMap_->computeServerIndexMapping(clientDistribution_->getGlobalIndex()); 414 398 const std::map<int, std::vector<size_t> >& globalIndexOnServer = clientServerMap_->getGlobalIndexOnServer(); 415 416 itbTmp = globalIndexOnServer.begin(); iteTmp = globalIndexOnServer.end();417 for (itTmp = itbTmp; itTmp != iteTmp; ++itTmp)418 {419 const std::vector<size_t>& tmpVec = itTmp->second; info << "tmpVec1. Rank " << itTmp->first << ". Size = " << tmpVec.size() << ". " ;420 for (int i = 0; i < tmpVec.size(); ++i) info << tmpVec[i] << " ";421 info << std::endl;422 }423 399 424 400 const std::vector<size_t>& globalIndexSendToServer = clientDistribution_->getGlobalDataIndexSendToServer();
Note: See TracChangeset
for help on using the changeset viewer.