source: XIOS/dev/dev_trunk_graph/src/transformation/axis_algorithm/axis_algorithm_extract_domain.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.0 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_EXTRACT_DOMAIN_HPP__
10#define __XIOS_AXIS_ALGORITHM_EXTRACT_DOMAIN_HPP__
11
12#include "algorithm_transformation_transfer.hpp"
13#include "transformation.hpp"
14
15namespace xios {
16
17class CAxis;
18class CDomain;
19class CExtractDomainToAxis;
20class CReductionAlgorithm;
21
22
23/*!
24  \class CAxisAlgorithmExtractDomain
25  Extract a domain to an axis
26*/
27class CAxisAlgorithmExtractDomain : public CAlgorithmTransformationTransfer
28{
29public:
30  CAxisAlgorithmExtractDomain(bool isSource, CAxis* axisDestination, CDomain* domainSource, CExtractDomainToAxis* algo);
31
32   virtual ~CAxisAlgorithmExtractDomain();
33
34  static bool registerTrans();
35  virtual StdString getAlgoName() {return "\\nextract_domain)";}
36protected:
37  enum ExtractDirection {
38    undefined = 0,
39    iDir = 1,
40    jDir = 2
41  };
42
43  ExtractDirection dir_;
44  int pos_; //! Position to extract
45 
46private:
47  CDomain* domainSrc_;
48  CAxis* axisDest_ ;
49
50public:
51  static CGenericAlgorithmTransformation* create(bool isSource, CGrid* gridDst, CGrid* gridSrc,
52                                                CTransformation<CAxis>* transformation,
53                                                int elementPositionInGrid,
54                                                std::map<int, int>& elementPositionInGridSrc2ScalarPosition,
55                                                std::map<int, int>& elementPositionInGridSrc2AxisPosition,
56                                                std::map<int, int>& elementPositionInGridSrc2DomainPosition,
57                                                std::map<int, int>& elementPositionInGridDst2ScalarPosition,
58                                                std::map<int, int>& elementPositionInGridDst2AxisPosition,
59                                                std::map<int, int>& elementPositionInGridDst2DomainPosition);
60  static bool dummyRegistered_;
61};
62
63}
64#endif // __XIOS_AXIS_ALGORITHM_EXTRACT_DOMAIN_HPP__
Note: See TracBrowser for help on using the repository browser.