Changeset 827 for XIOS/trunk/src/transformation/axis_algorithm_zoom.cpp
- Timestamp:
- 03/23/16 16:10:45 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/axis_algorithm_zoom.cpp
r821 r827 27 27 } 28 28 29 computeIndexSourceMapping();29 // computeIndexSourceMapping(); 30 30 } 31 31 … … 33 33 Compute the index mapping between axis on grid source and one on grid destination 34 34 */ 35 void CAxisAlgorithmZoom::computeIndexSourceMapping ()35 void CAxisAlgorithmZoom::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 36 36 { 37 37 StdSize niSource = axisSrc_->n.getValue(); … … 44 44 if (iend < ibegin) ni = 0; 45 45 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 48 52 for (StdSize idx = 0; idx < ni; ++idx) 49 53 { … … 75 79 StdSize iBeginMask = axisDest_->begin.getValue(); 76 80 StdSize globalIndexMask = 0; 77 std::map<int, std::vector<int> >& transMap = this->transformationMapping_ ;81 std::map<int, std::vector<int> >& transMap = this->transformationMapping_[0]; 78 82 std::map<int, std::vector<int> >::const_iterator ite = (transMap).end(); 79 83 for (StdSize idx = 0; idx < niMask; ++idx)
Note: See TracChangeset
for help on using the changeset viewer.