[1985] | 1 | /*! |
---|
| 2 | \file scalar_algorithm_reduce_scalar.hpp |
---|
| 3 | \brief Algorithm for reduce an scalar to a scalar |
---|
| 4 | */ |
---|
| 5 | #ifndef __XIOS_SCALAR_ALGORITHM_REDUCE_SCALAR_HPP__ |
---|
| 6 | #define __XIOS_SCALAR_ALGORITHM_REDUCE_SCALAR_HPP__ |
---|
| 7 | |
---|
[2011] | 8 | #include "algorithm_transformation_reduce.hpp" |
---|
[1985] | 9 | #include "transformation.hpp" |
---|
| 10 | |
---|
| 11 | namespace xios { |
---|
| 12 | |
---|
| 13 | class CScalar; |
---|
| 14 | class CReduceScalarToScalar; |
---|
| 15 | class CReductionAlgorithm; |
---|
| 16 | |
---|
| 17 | /*! |
---|
| 18 | \class CScalarAlgorithmReduceScalar |
---|
| 19 | Reducing an scalar to a scalar |
---|
| 20 | */ |
---|
[2011] | 21 | class CScalarAlgorithmReduceScalar : public CAlgorithmTransformationReduce |
---|
[1985] | 22 | { |
---|
| 23 | public: |
---|
[1988] | 24 | CScalarAlgorithmReduceScalar(bool isSource, CScalar* scalarDestination, CScalar* scalarSource, CReduceScalarToScalar* algo); |
---|
[1985] | 25 | |
---|
| 26 | virtual ~CScalarAlgorithmReduceScalar(); |
---|
| 27 | |
---|
| 28 | static bool registerTrans(); |
---|
| 29 | protected: |
---|
[2011] | 30 | |
---|
[1985] | 31 | |
---|
[2011] | 32 | public: |
---|
[1985] | 33 | static CGenericAlgorithmTransformation* create(bool isSource, CGrid* gridDst, CGrid* gridSrc, |
---|
| 34 | CTransformation<CScalar>* transformation, |
---|
| 35 | int elementPositionInGrid, |
---|
| 36 | std::map<int, int>& elementPositionInGridSrc2ScalarPosition, |
---|
| 37 | std::map<int, int>& elementPositionInGridSrc2AxisPosition, |
---|
| 38 | std::map<int, int>& elementPositionInGridSrc2DomainPosition, |
---|
| 39 | std::map<int, int>& elementPositionInGridDst2ScalarPosition, |
---|
| 40 | std::map<int, int>& elementPositionInGridDst2AxisPosition, |
---|
| 41 | std::map<int, int>& elementPositionInGridDst2DomainPosition); |
---|
| 42 | static bool dummyRegistered_; |
---|
| 43 | }; |
---|
| 44 | |
---|
| 45 | } |
---|
| 46 | #endif // __XIOS_SCALAR_ALGORITHM_REDUCE_SCALAR_HPP__ |
---|