source: XIOS/dev/dev_trunk_graph/src/transformation/axis_algorithm/axis_algorithm_reduce_axis.hpp @ 2019

Last change on this file since 2019 was 2019, checked in by yushan, 6 months ago

Graph intermedia commit to a tmp branch

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1/*!
2   \file axis_algorithm_reduce_axis.hpp
3   \author Ha NGUYEN
4   \since 23 June 2016
5   \date 23 June 2016
6
7   \brief Algorithm for reduce an axis to a axis
8 */
9#ifndef __XIOS_AXIS_ALGORITHM_REDUCE_AXIS_HPP__
10#define __XIOS_AXIS_ALGORITHM_REDUCE_AXIS_HPP__
11
12#include "algorithm_transformation_reduce.hpp"
13#include "transformation.hpp"
14
15namespace xios {
16
17class CAxis;
18class CReduceAxisToAxis;
19class CReductionAlgorithm;
20
21/*!
22  \class CAxisAlgorithmReduceAxis
23  Reduce a axis to an axis
24*/
25class CAxisAlgorithmReduceAxis : public CAlgorithmTransformationReduce
26{
27public:
28  CAxisAlgorithmReduceAxis(bool isSource, CAxis* axisDestination, CAxis* axisSource, CReduceAxisToAxis* algo);
29
30 
31  virtual ~CAxisAlgorithmReduceAxis();
32
33  static bool registerTrans();
34
35public:
36  static CGenericAlgorithmTransformation* create(bool isSource, CGrid* gridDst, CGrid* gridSrc,
37                                                CTransformation<CAxis>* transformation,
38                                                int elementPositionInGrid,
39                                                std::map<int, int>& elementPositionInGridSrc2ScalarPosition,
40                                                std::map<int, int>& elementPositionInGridSrc2AxisPosition,
41                                                std::map<int, int>& elementPositionInGridSrc2DomainPosition,
42                                                std::map<int, int>& elementPositionInGridDst2ScalarPosition,
43                                                std::map<int, int>& elementPositionInGridDst2AxisPosition,
44                                                std::map<int, int>& elementPositionInGridDst2DomainPosition);
45  static bool dummyRegistered_;
46};
47
48}
49#endif // __XIOS_AXIS_ALGORITHM_REDUCE_AXIS_HPP__
Note: See TracBrowser for help on using the repository browser.