source: XIOS/trunk/src/transformation/domain_algorithm_zoom.hpp @ 1704

Last change on this file since 1704 was 1704, checked in by yushan, 5 years ago

Introducing the new graph functionality. Attribute build_workflow_graph=.TRUE. is used in the field definition section in the xml file to enable the workflow graph of the field and other fields referecing to it. A more detailed document will be available soon on the graph fuctionality.

File size: 1.9 KB
Line 
1
2#ifndef __XIOS_DOMAIN_ALGORITHM_ZOOM_HPP__
3#define __XIOS_DOMAIN_ALGORITHM_ZOOM_HPP__
4
5#include "domain_algorithm_transformation.hpp"
6#include "transformation.hpp"
7
8namespace xios {
9
10class CDomain;
11class CZoomDomain;
12
13/*!
14  \class CDomainAlgorithmZoom
15  Implementing zoom (alternative zoom) on domain
16*/
17class CDomainAlgorithmZoom : public CDomainAlgorithmTransformation
18{
19public:
20  CDomainAlgorithmZoom(CDomain* domainDestination, CDomain* domainSource, CZoomDomain* zoomDomain);
21
22  virtual ~CDomainAlgorithmZoom() {}
23
24  static bool registerTrans();
25
26  virtual StdString getName() {return "Domain Trans. Filter \\n Zoom";}
27protected:
28  void updateDomainAttributes();
29  void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs);
30
31private:
32  void updateZoom();
33
34private:
35  //! Global zoom begin on domain
36  int zoomIBegin_;
37  int zoomJBegin_;
38
39  //! Global zoom end on domain
40  int zoomIEnd_;
41  int zoomJEnd_;
42
43  //! Global zoom size on domain
44  int zoomNi_;
45  int zoomNj_;
46
47private:
48
49  static CGenericAlgorithmTransformation* create(CGrid* gridDst, CGrid* gridSrc,
50                                                CTransformation<CDomain>* 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};
59
60}
61#endif // __XIOS_DOMAIN_ALGORITHM_ZOOM_HPP__
Note: See TracBrowser for help on using the repository browser.