Changeset 720 for XIOS/trunk/src/node
- Timestamp:
- 10/06/15 17:17:10 (9 years ago)
- Location:
- XIOS/trunk/src/node
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/domain.cpp
r715 r720 272 272 fillInRectilinearLonLat(); 273 273 this->isRedistributed_ = true; 274 info <<"now, we are here " << std::endl;275 info << "domain " << this->getId() << " ni " << ni.getValue() << " nj " << nj.getValue() << std::endl;276 274 } 277 275 } -
XIOS/trunk/src/node/grid.cpp
r718 r720 18 18 #include "grid_transformation.hpp" 19 19 #include "grid_generate.hpp" 20 #include "client_client_dht.hpp" 20 21 21 22 namespace xios { … … 158 159 /*! 159 160 * Test whether the data defined on the grid can be outputted in a compressed way. 160 * 161 * 161 162 * \return true if and only if a mask was defined for this grid 162 163 */ … … 395 396 clientDistribution_->isDataDistributed()); 396 397 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 // 397 413 clientServerMap_->computeServerIndexMapping(clientDistribution_->getGlobalIndex()); 398 414 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 const std::vector<size_t>& globalIndexSendToServer = clientDistribution_->getGlobalDataIndexSendToServer(); 400 425 std::map<int, std::vector<size_t> >::const_iterator iteGlobalMap, itbGlobalMap, itGlobalMap;
Note: See TracChangeset
for help on using the changeset viewer.