Ignore:
Timestamp:
01/07/21 23:17:23 (3 years ago)
Author:
ymipsl
Message:

Implement axis interpolation, without pressure coordinate for now.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/axis_algorithm/axis_algorithm_interpolate.hpp

    r1988 r2009  
    1010#define __XIOS_AXIS_ALGORITHM_INTERPOLATE_HPP__ 
    1111 
    12 #include "axis_algorithm_transformation.hpp" 
     12#include "algorithm_transformation_weight.hpp" 
    1313#include "transformation.hpp" 
    1414 
     
    2424  The values on axis source are assumed monotonic 
    2525*/ 
    26 class CAxisAlgorithmInterpolate : public CAxisAlgorithmTransformation 
     26class CAxisAlgorithmInterpolate : public CAlgorithmTransformationWeight 
    2727{ 
    2828public: 
     
    3232 
    3333  static bool registerTrans(); 
    34 protected: 
    35   void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs); 
    3634 
    3735private: 
     36  void computeRemap(const std::vector<CArray<double,1>* >& dataAuxInputs) ; 
    3837  void retrieveAllAxisValue(const CArray<double,1>& axisValue, const CArray<bool,1>& axisMask, 
    3938                            std::vector<double>& recvBuff, std::vector<int>& indexVec); 
     
    4847  StdString coordinate_; 
    4948  std::vector<std::vector<int> > transPosition_; 
     49  CAxis* axisSrc_=nullptr ; 
     50  CAxis* axisDest_=nullptr; 
     51private: 
    5052 
    51 private: 
    5253  static CGenericAlgorithmTransformation* create(bool isSource, CGrid* gridDst, CGrid* gridSrc, 
    5354                                                CTransformation<CAxis>* transformation, 
Note: See TracChangeset for help on using the changeset viewer.