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

Last change on this file since 1620 was 1553, checked in by oabramkina, 2 years ago

The zoom is dead, long live the zoom.

Replacing domain_zoom transformation by copying it from domain_extract. From now on, only the zoomed part of a domain is sent to servers. On the user's side all definitions stay the same.

To do soon: axis_zoom.

File size: 1.8 KB
RevLine 
[631]1
2#ifndef __XIOS_DOMAIN_ALGORITHM_ZOOM_HPP__
3#define __XIOS_DOMAIN_ALGORITHM_ZOOM_HPP__
4
5#include "domain_algorithm_transformation.hpp"
[933]6#include "transformation.hpp"
[631]7
8namespace xios {
[933]9
10class CDomain;
11class CZoomDomain;
12
[631]13/*!
14  \class CDomainAlgorithmZoom
[1553]15  Implementing zoom (alternative zoom) on domain
[631]16*/
17class CDomainAlgorithmZoom : public CDomainAlgorithmTransformation
18{
19public:
20  CDomainAlgorithmZoom(CDomain* domainDestination, CDomain* domainSource, CZoomDomain* zoomDomain);
21
22  virtual ~CDomainAlgorithmZoom() {}
23
[933]24  static bool registerTrans();
[827]25protected:
[1553]26  void updateDomainAttributes();
[827]27  void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs);
[631]28
29private:
30  void updateZoom();
31
32private:
33  //! Global zoom begin on domain
34  int zoomIBegin_;
35  int zoomJBegin_;
36
37  //! Global zoom end on domain
38  int zoomIEnd_;
39  int zoomJEnd_;
40
41  //! Global zoom size on domain
42  int zoomNi_;
43  int zoomNj_;
[933]44
45private:
46
47  static CGenericAlgorithmTransformation* create(CGrid* gridDst, CGrid* gridSrc,
48                                                CTransformation<CDomain>* transformation,
49                                                int elementPositionInGrid,
50                                                std::map<int, int>& elementPositionInGridSrc2ScalarPosition,
51                                                std::map<int, int>& elementPositionInGridSrc2AxisPosition,
52                                                std::map<int, int>& elementPositionInGridSrc2DomainPosition,
53                                                std::map<int, int>& elementPositionInGridDst2ScalarPosition,
54                                                std::map<int, int>& elementPositionInGridDst2AxisPosition,
55                                                std::map<int, int>& elementPositionInGridDst2DomainPosition);
[631]56};
57
58}
59#endif // __XIOS_DOMAIN_ALGORITHM_ZOOM_HPP__
Note: See TracBrowser for help on using the repository browser.