Ignore:
Timestamp:
01/03/21 18:00:43 (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/scalar_algorithm/scalar_algorithm_reduce_domain.hpp

    r1988 r1999  
    1010#define __XIOS_SCALAR_ALGORITHM_REDUCE_DOMAIN_HPP__ 
    1111 
    12 #include "scalar_algorithm_transformation.hpp" 
     12#include "algorithm_transformation_reduce.hpp" 
    1313#include "transformation.hpp" 
    1414 
     
    2424  Reducing an DOMAIN to a scalar 
    2525*/ 
    26 class CScalarAlgorithmReduceDomain : public CScalarAlgorithmTransformation 
     26class CScalarAlgorithmReduceDomain : public CAlgorithmTransformationReduce 
    2727{ 
    2828public: 
    2929  CScalarAlgorithmReduceDomain(bool isSource, CScalar* scalarDestination, CDomain* domainSource, CReduceDomainToScalar* algo); 
    3030 
    31   virtual void apply(const std::vector<std::pair<int,double> >& localIndex, 
    32                      const double* dataInput, 
    33                      CArray<double,1>& dataOut, 
    34                      std::vector<bool>& flagInitial,                      
    35                      bool ignoreMissingValue, bool firstPass); 
    36  
    37   virtual void updateData(CArray<double,1>& dataOut); 
    38    
    3931  virtual ~CScalarAlgorithmReduceDomain(); 
    4032 
    4133  static bool registerTrans(); 
    42 protected: 
    43   bool local ; 
    44   void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs); 
    4534 
    4635protected: 
    47   CReductionAlgorithm* reduction_; 
     36  CDomain* domainSrc_ ; 
    4837 
    4938private: 
Note: See TracChangeset for help on using the changeset viewer.