Ignore:
Timestamp:
12/17/20 13:18:57 (3 years ago)
Author:
ymipsl
Message:

Adapt transformation algorithm to new infrastructure (on going...)

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/axis_algorithm/axis_algorithm_extract.cpp

    r1988 r1998  
    4141 
    4242CAxisAlgorithmExtract::CAxisAlgorithmExtract(bool isSource, CAxis* axisDestination, CAxis* axisSource, CExtractAxis* extractAxis) 
    43 : CAxisAlgorithmTransformation(isSource, axisDestination, axisSource) 
     43: CAlgorithmTransformationTransfer(isSource), axisDest_(axisDestination), axisSrc_(axisSource) 
    4444TRY 
    4545{ 
     
    8383  if (axisSrc_->hasBounds) axisDest_->bounds.resize(2,nDest); 
    8484 
    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_; 
    8986 
    9087  for (int iDest = 0; iDest < nDest; iDest++) 
     
    106103    indGloDest = axisDest_->index(iDest); 
    107104    indGloSrc = axisSrc_->index(iSrc); 
    108     transMap[indGloDest].push_back(indGloSrc); 
    109     transWeight[indGloDest].push_back(1.0); 
     105     
     106    transMap[indGloDest]=indGloSrc; 
    110107 
    111108  } 
     109 
     110  axisDestination->checkAttributes() ; 
     111 
     112  this->computeAlgorithm(axisSource->getLocalView(CElementView::WORKFLOW), axisDestination->getLocalView(CElementView::WORKFLOW)) ; 
    112113} 
    113114CATCH 
    114115 
    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 
    121117 
    122118} 
Note: See TracChangeset for help on using the changeset viewer.