- Timestamp:
- 03/23/16 16:10:45 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/domain_algorithm_interpolate.cpp
r821 r827 23 23 { 24 24 interpDomain_->checkValid(domainSource); 25 computeIndexSourceMapping();25 // computeIndexSourceMapping(); 26 26 } 27 27 … … 351 351 Compute the index mapping between domain on grid source and one on grid destination 352 352 */ 353 void CDomainAlgorithmInterpolate::computeIndexSourceMapping ()353 void CDomainAlgorithmInterpolate::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 354 354 { 355 355 if (!interpDomain_->file.isEmpty()) … … 381 381 CContextClient* client=context->client; 382 382 int clientRank = client->clientRank; 383 384 this->transformationMapping_.resize(1); 385 this->transformationWeight_.resize(1); 386 387 std::map<int, std::vector<int> >& transMap = this->transformationMapping_[0]; 388 std::map<int, std::vector<double> >& transWeight = this->transformationWeight_[0]; 383 389 384 390 boost::unordered_map<size_t,int> globalIndexOfDomainDest; … … 531 537 for (int idx = 0; idx < countBuff; ++idx) 532 538 { 533 trans formationMapping_[*(recvIndexDestBuff + receivedSize + idx)].push_back(*(recvIndexSrcBuff + receivedSize + idx));534 trans formationWeight_[*(recvIndexDestBuff + receivedSize + idx)].push_back(*(recvWeightBuff + receivedSize + idx));539 transMap[*(recvIndexDestBuff + receivedSize + idx)].push_back(*(recvIndexSrcBuff + receivedSize + idx)); 540 transWeight[*(recvIndexDestBuff + receivedSize + idx)].push_back(*(recvWeightBuff + receivedSize + idx)); 535 541 } 536 542 receivedSize += countBuff;
Note: See TracChangeset
for help on using the changeset viewer.