Changeset 623 for XIOS/trunk/src/filter/transformation_mapping.cpp
- Timestamp:
- 06/22/15 13:36:31 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/filter/transformation_mapping.cpp
r622 r623 1 /*! 2 \file transformation_mapping.cpp 3 \author Ha NGUYEN 4 \since 14 May 2015 5 \date 09 June 2015 6 7 \brief Take charge of communication among clients to exchange transformed data. 8 */ 9 1 10 #include "transformation_mapping.hpp" 2 11 #include <boost/unordered_map.hpp> … … 14 23 int clientRank = client->clientRank; 15 24 16 CDistributionClient distributionClient Dest(client->clientRank, gridSource_);25 CDistributionClient distributionClientSrc(client->clientRank, gridSource_); 17 26 18 const CArray<size_t,1>& globalIndexGridSrc = distributionClient Dest.getGlobalDataIndexSendToServer(); //gridSource_->getDistributionClient()->getGlobalDataIndexSendToServer();27 const CArray<size_t,1>& globalIndexGridSrc = distributionClientSrc.getGlobalDataIndexSendToServer(); //gridSource_->getDistributionClient()->getGlobalDataIndexSendToServer(); 19 28 boost::unordered_map<size_t,int> globalIndexOfServer; 20 29 int globalIndexSize = globalIndexGridSrc.numElements(); … … 24 33 } 25 34 35 std::cout << "global index grid src " << globalIndexGridSrc << std::endl; 26 36 gridIndexClientClientMapping_ = new CClientServerMappingDistributed(globalIndexOfServer, 27 37 client->intraComm, … … 151 161 } 152 162 163 /*! 164 Return (grid) global index on grid destination. This mapping contains the rank of client source (that sends info to grid destination) 165 and the corresponding global index to write on grid destination. 166 \return global index mapping to receive on grid destination 167 */ 153 168 const std::map<int,std::vector<std::vector<size_t> > >& CTransformationMapping::getGlobalIndexReceivedOnGridDestMapping() const 154 169 { … … 156 171 } 157 172 173 /*! 174 Return (grid) global index on grid source. This mapping contains the rank of client destination (which receives transformation info) and 175 the corresponding global index to send 176 \return global index mapping to send on grid source 177 */ 158 178 const std::map<int,std::vector<size_t> >& CTransformationMapping::getGlobalIndexSendToGridDestMapping() const 159 179 {
Note: See TracChangeset
for help on using the changeset viewer.