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/axis_algorithm_zoom.cpp

    r821 r827  
    2727  } 
    2828 
    29   computeIndexSourceMapping(); 
     29//  computeIndexSourceMapping(); 
    3030} 
    3131 
     
    3333  Compute the index mapping between axis on grid source and one on grid destination 
    3434*/ 
    35 void CAxisAlgorithmZoom::computeIndexSourceMapping() 
     35void CAxisAlgorithmZoom::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 
    3636{ 
    3737  StdSize niSource = axisSrc_->n.getValue(); 
     
    4444  if (iend < ibegin) ni = 0; 
    4545 
    46   std::map<int, std::vector<int> >& transMap = this->transformationMapping_; 
    47   std::map<int, std::vector<double> >& transWeight = this->transformationWeight_; 
     46  this->transformationMapping_.resize(1); 
     47  this->transformationWeight_.resize(1); 
     48 
     49  std::map<int, std::vector<int> >& transMap = this->transformationMapping_[0]; 
     50  std::map<int, std::vector<double> >& transWeight = this->transformationWeight_[0]; 
     51 
    4852  for (StdSize idx = 0; idx < ni; ++idx) 
    4953  { 
     
    7579  StdSize iBeginMask = axisDest_->begin.getValue(); 
    7680  StdSize globalIndexMask = 0; 
    77   std::map<int, std::vector<int> >& transMap = this->transformationMapping_; 
     81  std::map<int, std::vector<int> >& transMap = this->transformationMapping_[0]; 
    7882  std::map<int, std::vector<int> >::const_iterator ite = (transMap).end(); 
    7983  for (StdSize idx = 0; idx < niMask; ++idx) 
Note: See TracChangeset for help on using the changeset viewer.