[1985] | 1 | |
---|
| 2 | #ifndef __XIOS_DOMAIN_ALGORITHM_ZOOM_HPP__ |
---|
| 3 | #define __XIOS_DOMAIN_ALGORITHM_ZOOM_HPP__ |
---|
| 4 | |
---|
[1998] | 5 | #include "algorithm_transformation_transfer.hpp" |
---|
[1985] | 6 | #include "transformation.hpp" |
---|
| 7 | |
---|
| 8 | namespace xios { |
---|
| 9 | |
---|
| 10 | class CDomain; |
---|
| 11 | class CZoomDomain; |
---|
| 12 | |
---|
| 13 | /*! |
---|
| 14 | \class CDomainAlgorithmZoom |
---|
| 15 | Implementing zoom (alternative zoom) on domain |
---|
| 16 | */ |
---|
[1998] | 17 | class CDomainAlgorithmZoom : public CAlgorithmTransformationTransfer |
---|
[1985] | 18 | { |
---|
| 19 | public: |
---|
[1988] | 20 | CDomainAlgorithmZoom(bool isSource, CDomain* domainDestination, CDomain* domainSource, CZoomDomain* zoomDomain); |
---|
[1985] | 21 | |
---|
| 22 | virtual ~CDomainAlgorithmZoom() {} |
---|
| 23 | |
---|
| 24 | static bool registerTrans(); |
---|
| 25 | protected: |
---|
| 26 | void updateDomainAttributes(); |
---|
[1998] | 27 | |
---|
[1985] | 28 | private: |
---|
| 29 | void updateZoom(); |
---|
| 30 | |
---|
| 31 | private: |
---|
| 32 | //! Global zoom begin on domain |
---|
| 33 | int zoomIBegin_; |
---|
| 34 | int zoomJBegin_; |
---|
| 35 | |
---|
| 36 | //! Global zoom end on domain |
---|
| 37 | int zoomIEnd_; |
---|
| 38 | int zoomJEnd_; |
---|
| 39 | |
---|
| 40 | //! Global zoom size on domain |
---|
| 41 | int zoomNi_; |
---|
| 42 | int zoomNj_; |
---|
[1998] | 43 | CDomain* domainSrc_ ; |
---|
| 44 | CDomain* domainDest_ ; |
---|
[1985] | 45 | |
---|
| 46 | |
---|
[2011] | 47 | public: |
---|
[1985] | 48 | static CGenericAlgorithmTransformation* create(bool isSource, CGrid* gridDst, CGrid* gridSrc, |
---|
| 49 | CTransformation<CDomain>* transformation, |
---|
| 50 | int elementPositionInGrid, |
---|
| 51 | std::map<int, int>& elementPositionInGridSrc2ScalarPosition, |
---|
| 52 | std::map<int, int>& elementPositionInGridSrc2AxisPosition, |
---|
| 53 | std::map<int, int>& elementPositionInGridSrc2DomainPosition, |
---|
| 54 | std::map<int, int>& elementPositionInGridDst2ScalarPosition, |
---|
| 55 | std::map<int, int>& elementPositionInGridDst2AxisPosition, |
---|
| 56 | std::map<int, int>& elementPositionInGridDst2DomainPosition); |
---|
| 57 | static bool dummyRegistered_; |
---|
| 58 | }; |
---|
| 59 | |
---|
| 60 | } |
---|
| 61 | #endif // __XIOS_DOMAIN_ALGORITHM_ZOOM_HPP__ |
---|