source: XIOS/dev/dev_trunk_graph/src/transformation/axis_algorithm/axis_algorithm_temporal_splitting.hpp @ 2030

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

Graph intermediate commit to a tmp branch.

  • Property svn:executable set to *
File size: 2.1 KB
Line 
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 "transformation.hpp"
13#include "algorithm_transformation_no_data_modification.hpp"
14namespace xios
15{
16
17  class CAxis;
18  class CScalar;
19  class CTemporalSplitting;
20
21  /*!
22    \class CAxisAlgorithmExtractDomain
23    Extract a domain to an axis
24  */
25  class CAxisAlgorithmTemporalSplitting : public CAlgorithmTransformationNoDataModification 
26  {
27    public:
28      CAxisAlgorithmTemporalSplitting(bool isSource, CAxis* axisDestination, CScalar* scalarSource, CTemporalSplitting* algo);
29      virtual ~CAxisAlgorithmTemporalSplitting();
30      static bool registerTrans();
31      virtual StdString getAlgoName() {return "\\ntemporal_splitting";}
32
33      virtual CTransformFilter* createTransformFilter(CGarbageCollector& gc, CGridAlgorithm* algo, bool detectMissingValues, double defaultValue) ;
34
35      static CGenericAlgorithmTransformation* create(bool isSource, CGrid* gridDst, CGrid* gridSrc,
36                                                     CTransformation<CAxis>* transformation,
37                                                     int elementPositionInGrid,
38                                                     std::map<int, int>& elementPositionInGridSrc2ScalarPosition,
39                                                     std::map<int, int>& elementPositionInGridSrc2AxisPosition,
40                                                     std::map<int, int>& elementPositionInGridSrc2DomainPosition,
41                                                     std::map<int, int>& elementPositionInGridDst2ScalarPosition,
42                                                     std::map<int, int>& elementPositionInGridDst2AxisPosition,
43                                                     std::map<int, int>& elementPositionInGridDst2DomainPosition);
44    private:
45    int nrecords_;
46    static bool dummyRegistered_;
47  };
48
49}
50#endif // __XIOS_AXIS_ALGORITHM_TEMPORAL_SPLITTING_HPP__
Note: See TracBrowser for help on using the repository browser.