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_zoom.cpp

    r787 r827  
    4040  } 
    4141 
    42   computeIndexSourceMapping(); 
     42//  computeIndexSourceMapping(); 
    4343} 
    4444 
     
    4646  Compute the index mapping between domain on grid source and one on grid destination 
    4747*/ 
    48 void CDomainAlgorithmZoom::computeIndexSourceMapping() 
     48void CDomainAlgorithmZoom::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 
    4949{ 
    5050  int niSource = domainSrc_->ni.getValue(); 
     
    6868  int niGlob = domainSrc_->ni_glo.getValue(); 
    6969  int njGlob = domainSrc_->nj_glo.getValue(); 
    70   std::map<int, std::vector<int> >& transMap = this->transformationMapping_; 
    71   std::map<int, std::vector<double> >& transWeight = this->transformationWeight_; 
     70 
     71  this->transformationMapping_.resize(1); 
     72  this->transformationWeight_.resize(1); 
     73 
     74  std::map<int, std::vector<int> >& transMap = this->transformationMapping_[0]; 
     75  std::map<int, std::vector<double> >& transWeight = this->transformationWeight_[0]; 
     76 
     77//  std::map<int, std::vector<int> >& transMap = this->transformationMapping_; 
     78//  std::map<int, std::vector<double> >& transWeight = this->transformationWeight_; 
    7279  int domainGlobalIndex; 
    7380  for (int j = 0; j < nj; ++j) 
     
    110117  int globalIndexMask = 0; 
    111118 
    112   std::map<int, std::vector<int> >& transMap = this->transformationMapping_; 
     119  std::map<int, std::vector<int> >& transMap = this->transformationMapping_[0]; 
    113120  std::map<int, std::vector<int> >::const_iterator ite = (transMap).end(); 
    114121  for (int j = 0; j < njMask; ++j) 
Note: See TracChangeset for help on using the changeset viewer.