Ignore:
Timestamp:
01/07/21 11:52:55 (3 years ago)
Author:
ymipsl
Message:
  • fix some problem in transformation
  • implement new temporal splitting transformation

YM

Location:
XIOS/dev/dev_ym/XIOS_COUPLING/src/node
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/axis.hpp

    r1984 r2007  
    146146        CGenericAlgorithmTransformation* transformationAlgorithm_ = nullptr ; 
    147147      public: 
    148         void setTransformationAlgorithm(CGenericAlgorithmTransformation* transformationAlgorithm) { transformationAlgorithm=transformationAlgorithm ;} 
     148        void setTransformationAlgorithm(CGenericAlgorithmTransformation* transformationAlgorithm) { transformationAlgorithm_=transformationAlgorithm ;} 
    149149        CGenericAlgorithmTransformation* getTransformationAlgorithm(void) { return transformationAlgorithm_ ;}    
    150150      private: 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.cpp

    r2002 r2007  
    2727#include "transform_filter.hpp" 
    2828#include "grid_algorithm.hpp" 
     29#include "grid_algorithm_generic.hpp" 
     30#include "generic_algorithm_transformation.hpp" 
     31#include "algo_types.hpp" 
    2932 
    3033 
     
    17041707  TRY 
    17051708  { 
     1709    registerAlgorithmTransformation() ; // needed to enable self-registration of the transformations 
     1710                                        // big mystery why it doesn't work witout that... 
     1711                                        // problem with the linker ??  
     1712     
    17061713    std::shared_ptr<CFilter> inputFilter = std::shared_ptr<CPassThroughFilter>(new CPassThroughFilter(gc)); 
    17071714    std::shared_ptr<CFilter> outputFilter = inputFilter ; 
    1708      
     1715 
     1716 
    17091717    string newId ; 
    17101718    if (gridSrc!=nullptr) newId = gridSrc->getId() + " --> " + this->getId()  ; 
     
    19191927        else gridAlgorithm = newGrid->getGridAlgorithm() ; 
    19201928 
    1921         shared_ptr<CTransformFilter> transformFilter = shared_ptr<CTransformFilter>(new CTransformFilter(gc, gridAlgorithm, detectMissingValues, defaultValue)) ; 
     1929        shared_ptr<CTransformFilter> transformFilter = shared_ptr<CTransformFilter>(gridAlgorithm->createTransformFilter(gc, detectMissingValues, defaultValue)) ; 
    19221930        outputFilter->connectOutput(transformFilter,0) ; 
    19231931        outputFilter = transformFilter ; 
Note: See TracChangeset for help on using the changeset viewer.