Ignore:
Timestamp:
01/12/21 23:05:02 (3 years ago)
Author:
ymipsl
Message:
  • bug fix when createing mask on server side when overlapping grid
  • implement axis interpolation on pressure coordinate
  • big cleaning in transformation

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/scalar_algorithm/scalar_algorithm_reduce_scalar.hpp

    r1988 r2011  
    66#define __XIOS_SCALAR_ALGORITHM_REDUCE_SCALAR_HPP__ 
    77 
    8 #include "scalar_algorithm_transformation.hpp" 
     8#include "algorithm_transformation_reduce.hpp" 
    99#include "transformation.hpp" 
    1010 
     
    1919  Reducing an scalar to a scalar 
    2020*/ 
    21 class CScalarAlgorithmReduceScalar : public CScalarAlgorithmTransformation 
     21class CScalarAlgorithmReduceScalar : public CAlgorithmTransformationReduce 
    2222{ 
    2323public: 
    2424  CScalarAlgorithmReduceScalar(bool isSource, CScalar* scalarDestination, CScalar* scalarSource, CReduceScalarToScalar* algo); 
    2525 
    26   virtual void apply(const std::vector<std::pair<int,double> >& localIndex, 
    27                      const double* dataInput, 
    28                      CArray<double,1>& dataOut, 
    29                      std::vector<bool>& flagInitial, 
    30                      bool ignoreMissingValue, bool firstPass); 
    31  
    32   virtual void updateData(CArray<double,1>& dataOut); 
    33    
    3426  virtual ~CScalarAlgorithmReduceScalar(); 
    3527 
    3628  static bool registerTrans(); 
    3729protected: 
    38   void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs); 
     30   
    3931 
    40 protected: 
    41   CReductionAlgorithm* reduction_; 
    42  
    43 private: 
    44  
     32public: 
    4533  static CGenericAlgorithmTransformation* create(bool isSource, CGrid* gridDst, CGrid* gridSrc, 
    4634                                                CTransformation<CScalar>* transformation, 
Note: See TracChangeset for help on using the changeset viewer.