Ignore:
Timestamp:
03/23/16 16:10:45 (8 years ago)
Author:
mhnguyen
Message:

Implementing dynamic interpolation on axis

+) Change grid transformation to make it more flexible
+) Make some small improvements

Test
+) On Curie
+) All test pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/transformation/domain_algorithm_interpolate.cpp

    r821 r827  
    2323{ 
    2424  interpDomain_->checkValid(domainSource); 
    25   computeIndexSourceMapping(); 
     25//  computeIndexSourceMapping(); 
    2626} 
    2727 
     
    351351  Compute the index mapping between domain on grid source and one on grid destination 
    352352*/ 
    353 void CDomainAlgorithmInterpolate::computeIndexSourceMapping() 
     353void CDomainAlgorithmInterpolate::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 
    354354{ 
    355355  if (!interpDomain_->file.isEmpty()) 
     
    381381  CContextClient* client=context->client; 
    382382  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]; 
    383389 
    384390  boost::unordered_map<size_t,int> globalIndexOfDomainDest; 
     
    531537    for (int idx = 0; idx < countBuff; ++idx) 
    532538    { 
    533       transformationMapping_[*(recvIndexDestBuff + receivedSize + idx)].push_back(*(recvIndexSrcBuff + receivedSize + idx)); 
    534       transformationWeight_[*(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)); 
    535541    } 
    536542    receivedSize += countBuff; 
Note: See TracChangeset for help on using the changeset viewer.