Changeset 2011 for XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/scalar_algorithm/scalar_algorithm_reduce_scalar.hpp
- Timestamp:
- 01/12/21 23:05:02 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/scalar_algorithm/scalar_algorithm_reduce_scalar.hpp
r1988 r2011 6 6 #define __XIOS_SCALAR_ALGORITHM_REDUCE_SCALAR_HPP__ 7 7 8 #include " scalar_algorithm_transformation.hpp"8 #include "algorithm_transformation_reduce.hpp" 9 9 #include "transformation.hpp" 10 10 … … 19 19 Reducing an scalar to a scalar 20 20 */ 21 class CScalarAlgorithmReduceScalar : public C ScalarAlgorithmTransformation21 class CScalarAlgorithmReduceScalar : public CAlgorithmTransformationReduce 22 22 { 23 23 public: 24 24 CScalarAlgorithmReduceScalar(bool isSource, CScalar* scalarDestination, CScalar* scalarSource, CReduceScalarToScalar* algo); 25 25 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 34 26 virtual ~CScalarAlgorithmReduceScalar(); 35 27 36 28 static bool registerTrans(); 37 29 protected: 38 void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs);30 39 31 40 protected: 41 CReductionAlgorithm* reduction_; 42 43 private: 44 32 public: 45 33 static CGenericAlgorithmTransformation* create(bool isSource, CGrid* gridDst, CGrid* gridSrc, 46 34 CTransformation<CScalar>* transformation,
Note: See TracChangeset
for help on using the changeset viewer.