source: XIOS/dev/dev_trunk_graph/src/transformation/axis_algorithm/axis_algorithm_extract.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: 2.0 KB
Line 
1/*!
2   \file axis_algorithm_extract.hpp
3   \brief Algorithm for extracting an axis.
4 */
5#ifndef __XIOS_AXIS_ALGORITHM_EXTRACT_HPP__
6#define __XIOS_AXIS_ALGORITHM_EXTRACT_HPP__
7
8#include "algorithm_transformation_transfer.hpp"
9#include "transformation.hpp"
10
11namespace xios {
12class CAxis;
13class CExtractAxis;
14
15/*!
16  \class CAxisAlgorithmExtract
17  Implementing extract on axis
18  A extracted region can be considered as region that isn't masked.
19  Only this extracted region is extracted to write on Netcdf.
20*/
21class CAxisAlgorithmExtract : public CAlgorithmTransformationTransfer
22{
23public:
24  CAxisAlgorithmExtract(bool isSource, CAxis* axisDestination, CAxis* axisSource, CExtractAxis* extractAxis);
25
26  virtual ~CAxisAlgorithmExtract() {}
27
28  static bool registerTrans();
29
30private:
31
32private:
33  //! Global extract begin on axis
34  StdSize extractBegin_;
35
36  //! Global extract end on axis
37  StdSize extractEnd_;
38
39  //! Global extract size on axis
40  StdSize extractN_;
41
42  std::vector<int> extractIndex_;
43
44private:
45  CAxis* axisSrc_;
46  CAxis* axisDest_;
47
48public:
49  static CGenericAlgorithmTransformation* create(bool isSource, CGrid* gridDst, CGrid* gridSrc,
50                                                CTransformation<CAxis>* transformation,
51                                                int elementPositionInGrid,
52                                                std::map<int, int>& elementPositionInGridSrc2ScalarPosition,
53                                                std::map<int, int>& elementPositionInGridSrc2AxisPosition,
54                                                std::map<int, int>& elementPositionInGridSrc2DomainPosition,
55                                                std::map<int, int>& elementPositionInGridDst2ScalarPosition,
56                                                std::map<int, int>& elementPositionInGridDst2AxisPosition,
57                                                std::map<int, int>& elementPositionInGridDst2DomainPosition);
58  static bool dummyRegistered_;
59};
60
61}
62#endif // __XIOS_AXIS_ALGORITHM_EXTRACT_HPP__
Note: See TracBrowser for help on using the repository browser.