Last change
on this file since 713 was
630,
checked in by mhnguyen, 9 years ago
|
Implementing interpolation (polynomial) and correct some bugs
+) Implement interpolation (polynomial)
+) Correct some minor bugs relating to memory allocation
+) Clear some redundant codes
Test
+) On Curie
+) test_client and test_complete pass
|
File size:
1.0 KB
|
Line | |
---|
1 | /*! |
---|
2 | \file axis_algorithm_zoom.hpp |
---|
3 | \author Ha NGUYEN |
---|
4 | \since 03 June 2015 |
---|
5 | \date 12 June 2015 |
---|
6 | |
---|
7 | \brief Algorithm for zooming on an axis. |
---|
8 | */ |
---|
9 | #ifndef __XIOS_AXIS_ALGORITHM_ZOOM_HPP__ |
---|
10 | #define __XIOS_AXIS_ALGORITHM_ZOOM_HPP__ |
---|
11 | |
---|
12 | #include "axis_algorithm_transformation.hpp" |
---|
13 | #include "axis.hpp" |
---|
14 | #include "zoom_axis.hpp" |
---|
15 | |
---|
16 | namespace xios { |
---|
17 | /*! |
---|
18 | \class CAxisAlgorithmZoom |
---|
19 | Implementing zoom on axis |
---|
20 | A zoomed region can be considered as region that isnt masked. |
---|
21 | Only this zoomed region is extracted to write on Netcdf. |
---|
22 | */ |
---|
23 | class CAxisAlgorithmZoom : public CAxisAlgorithmTransformation |
---|
24 | { |
---|
25 | public: |
---|
26 | CAxisAlgorithmZoom(CAxis* axisDestination, CAxis* axisSource, CZoomAxis* zoomAxis); |
---|
27 | |
---|
28 | virtual ~CAxisAlgorithmZoom() {} |
---|
29 | |
---|
30 | virtual void computeIndexSourceMapping(); |
---|
31 | |
---|
32 | private: |
---|
33 | void updateAxisDestinationMask(); |
---|
34 | void updateZoom(); |
---|
35 | |
---|
36 | private: |
---|
37 | //! Global zoom begin on axis |
---|
38 | StdSize zoomBegin_; |
---|
39 | |
---|
40 | //! Global zoom end on axis |
---|
41 | StdSize zoomEnd_; |
---|
42 | |
---|
43 | //! Global zoom size on axis |
---|
44 | StdSize zoomSize_; |
---|
45 | }; |
---|
46 | |
---|
47 | } |
---|
48 | #endif // __XIOS_AXIS_ALGORITHM_ZOOM_HPP__ |
---|
Note: See
TracBrowser
for help on using the repository browser.