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

Last change on this file since 829 was 827, checked in by mhnguyen, 8 years ago

Implementing dynamic interpolation on axis

+) Change grid transformation to make it more flexible
+) Make some small improvements

Test
+) On Curie
+) All test pass

File size: 1.2 KB
Line 
1/*!
2   \file domain_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 domain.
8 */
9#ifndef __XIOS_DOMAIN_ALGORITHM_ZOOM_HPP__
10#define __XIOS_DOMAIN_ALGORITHM_ZOOM_HPP__
11
12#include "domain_algorithm_transformation.hpp"
13#include "zoom_domain.hpp"
14#include "domain.hpp"
15
16namespace xios {
17/*!
18  \class CDomainAlgorithmZoom
19  Implementing zoom on domain
20  A zoomed region can be considered as region that isnt masked.
21  Only this zoomed region is extracted to write on Netcdf.
22*/
23class CDomainAlgorithmZoom : public CDomainAlgorithmTransformation
24{
25public:
26  CDomainAlgorithmZoom(CDomain* domainDestination, CDomain* domainSource, CZoomDomain* zoomDomain);
27
28  virtual ~CDomainAlgorithmZoom() {}
29
30protected:
31  void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs);
32
33private:
34  void updateDomainDestinationMask();
35  void updateZoom();
36
37private:
38  //! Global zoom begin on domain
39  int zoomIBegin_;
40  int zoomJBegin_;
41
42  //! Global zoom end on domain
43  int zoomIEnd_;
44  int zoomJEnd_;
45
46  //! Global zoom size on domain
47  int zoomNi_;
48  int zoomNj_;
49};
50
51}
52#endif // __XIOS_DOMAIN_ALGORITHM_ZOOM_HPP__
Note: See TracBrowser for help on using the repository browser.