source: XIOS/trunk/src/transformation/axis_algorithm_transformation.hpp @ 631

Last change on this file since 631 was 631, checked in by mhnguyen, 9 years ago

Implementing zooming on a domain

+) Add algorithm to do zooming on a domain
+) Remove some redundant codes

Test
+) On Curie
+) test_complete and test_client are correct

File size: 1.7 KB
RevLine 
[624]1/*!
2   \file axis_algorithm_transformation.hpp
3   \author Ha NGUYEN
4   \since 14 May 2015
[630]5   \date 29 June 2015
[624]6
7   \brief Interface for all axis transformation algorithms.
8 */
[620]9#ifndef __XIOS_AXIS_ALGORITHM_TRANSFORMATION_HPP__
10#define __XIOS_AXIS_ALGORITHM_TRANSFORMATION_HPP__
11
12#include "generic_algorithm_transformation.hpp"
13#include "axis.hpp"
14
15namespace xios {
16
[624]17/*!
18  \class CAxisAlgorithmTransformation
19  Algorithms for axis.
20*/
[620]21class CAxisAlgorithmTransformation : public virtual CGenericAlgorithmTransformation
22{
23public:
[622]24  CAxisAlgorithmTransformation(CAxis* axisDestination, CAxis* axisSource);
[620]25
[621]26  virtual ~CAxisAlgorithmTransformation();
27
[620]28protected:
[630]29  virtual void computeGlobalGridIndexFromGlobalIndexElement(int axisDestGlobalIndex,
[620]30                                                        const std::vector<int>& axisSrcGlobalIndex,
31                                                        int axisPositionInGrid,
32                                                        const std::vector<int>& gridDestGlobalDim,
[631]33                                                        const std::vector<int>& gridSrcGlobalDim,
[620]34                                                        const CArray<size_t,1>& globalIndexGridDestSendToServer,
35                                                        CArray<size_t,1>& globalIndexDestGrid,
[630]36                                                        std::vector<std::vector<size_t> >& globalIndexSrcGrid);
[621]37  void computeIndexSourceMapping();
[624]38
[620]39protected:
[624]40  //! Global index of an axis on grid destination
[622]41  std::vector<int> axisDestGlobalIndex_;
[624]42
43  //! Size of
[622]44  int axisDestGlobalSize_;
[620]45
[630]46    //! Axis on grid destination
47  CAxis* axisDest_;
48
49  //! Axis on grid source
50  CAxis* axisSrc_;
[620]51};
52
53}
54#endif // __XIOS_AXIS_ALGORITHM_TRANSFORMATION_HPP__
Note: See TracBrowser for help on using the repository browser.