Changeset 1998 for XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/axis_algorithm/axis_algorithm_extract.cpp
- Timestamp:
- 12/17/20 13:18:57 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/axis_algorithm/axis_algorithm_extract.cpp
r1988 r1998 41 41 42 42 CAxisAlgorithmExtract::CAxisAlgorithmExtract(bool isSource, CAxis* axisDestination, CAxis* axisSource, CExtractAxis* extractAxis) 43 : CA xisAlgorithmTransformation(isSource, axisDestination,axisSource)43 : CAlgorithmTransformationTransfer(isSource), axisDest_(axisDestination), axisSrc_(axisSource) 44 44 TRY 45 45 { … … 83 83 if (axisSrc_->hasBounds) axisDest_->bounds.resize(2,nDest); 84 84 85 this->transformationMapping_.resize(1); 86 this->transformationWeight_.resize(1); 87 TransformationIndexMap& transMap = this->transformationMapping_[0]; 88 TransformationWeightMap& transWeight = this->transformationWeight_[0]; 85 auto& transMap = this->transformationMapping_; 89 86 90 87 for (int iDest = 0; iDest < nDest; iDest++) … … 106 103 indGloDest = axisDest_->index(iDest); 107 104 indGloSrc = axisSrc_->index(iSrc); 108 transMap[indGloDest].push_back(indGloSrc);109 trans Weight[indGloDest].push_back(1.0);105 106 transMap[indGloDest]=indGloSrc; 110 107 111 108 } 109 110 axisDestination->checkAttributes() ; 111 112 this->computeAlgorithm(axisSource->getLocalView(CElementView::WORKFLOW), axisDestination->getLocalView(CElementView::WORKFLOW)) ; 112 113 } 113 114 CATCH 114 115 115 /*! 116 Compute the index mapping between domain on grid source and one on grid destination 117 */ 118 void CAxisAlgorithmExtract::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 119 { 120 } 116 121 117 122 118 }
Note: See TracChangeset
for help on using the changeset viewer.