1 | /*! |
---|
2 | \file axis_algorithm_reduce_domain.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_TEMPORAL_SPLITTING_HPP__ |
---|
10 | #define __XIOS_AXIS_ALGORITHM_TEMPORAL_SPLITTING_HPP__ |
---|
11 | |
---|
12 | #include "axis_algorithm_transformation.hpp" |
---|
13 | #include "transformation.hpp" |
---|
14 | |
---|
15 | namespace xios { |
---|
16 | |
---|
17 | class CAxis; |
---|
18 | class CScalar; |
---|
19 | class CTemporalSplitting; |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | /*! |
---|
24 | \class CAxisAlgorithmExtractDomain |
---|
25 | Extract a domain to an axis |
---|
26 | */ |
---|
27 | class CAxisAlgorithmTemporalSplitting : public CAxisAlgorithmTransformation |
---|
28 | { |
---|
29 | public: |
---|
30 | CAxisAlgorithmTemporalSplitting(CAxis* axisDestination, CScalar* scalarSource, CTemporalSplitting* algo); |
---|
31 | |
---|
32 | virtual ~CAxisAlgorithmTemporalSplitting(); |
---|
33 | |
---|
34 | static bool registerTrans(); |
---|
35 | |
---|
36 | virtual StdString getName() {return "temporal_splitting";} |
---|
37 | |
---|
38 | protected: |
---|
39 | void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs); |
---|
40 | |
---|
41 | private: |
---|
42 | static CGenericAlgorithmTransformation* create(CGrid* gridDst, CGrid* gridSrc, |
---|
43 | CTransformation<CAxis>* transformation, |
---|
44 | int elementPositionInGrid, |
---|
45 | std::map<int, int>& elementPositionInGridSrc2ScalarPosition, |
---|
46 | std::map<int, int>& elementPositionInGridSrc2AxisPosition, |
---|
47 | std::map<int, int>& elementPositionInGridSrc2DomainPosition, |
---|
48 | std::map<int, int>& elementPositionInGridDst2ScalarPosition, |
---|
49 | std::map<int, int>& elementPositionInGridDst2AxisPosition, |
---|
50 | std::map<int, int>& elementPositionInGridDst2DomainPosition); |
---|
51 | }; |
---|
52 | |
---|
53 | } |
---|
54 | #endif // __XIOS_AXIS_ALGORITHM_TEMPORAL_SPLITTING_HPP__ |
---|