source: XIOS/dev/dev_trunk_graph/src/transformation/axis_algorithm/axis_algorithm_inverse.hpp @ 2030

Last change on this file since 2030 was 2030, checked in by yushan, 6 months ago

Graph intermediate commit to a tmp branch.

  • Property svn:executable set to *
File size: 1.8 KB
Line 
1/*!
2   \file axis_algorithm_inverse.hpp
3   \author Ha NGUYEN
4   \since 14 May 2015
5   \date 09 June 2015
6
7   \brief Algorithm for inversing an axis..
8 */
9#ifndef __XIOS_AXIS_ALGORITHM_INVERSE_HPP__
10#define __XIOS_AXIS_ALGORITHM_INVERSE_HPP__
11
12#include "algorithm_transformation_transfer.hpp"
13#include "transformation.hpp"
14
15namespace xios {
16
17class CAxis;
18class CInverseAxis;
19
20/*!
21  \class CAxisAlgorithmInverse
22  Inversing an axis
23*/
24class CAxisAlgorithmInverse : public CAlgorithmTransformationTransfer
25{
26public:
27  CAxisAlgorithmInverse(bool isSource, CAxis* axisDestination, CAxis* axisSource, CInverseAxis* inverseAxis);
28
29  virtual ~CAxisAlgorithmInverse() {}
30
31  static bool registerTrans();
32  virtual StdString getAlgoName() {return "\\ninverse_axis";}
33
34
35private:
36  CAxis* axisSrc_;
37  CAxis* axisDest_;
38  void updateAxisValue();
39
40public:
41 static CGenericAlgorithmTransformation* create(bool isSource, CGrid* gridDst, CGrid* gridSrc,
42                                                CTransformation<CAxis>* transformation,
43                                                int elementPositionInGrid,
44                                                std::map<int, int>& elementPositionInGridSrc2ScalarPosition,
45                                                std::map<int, int>& elementPositionInGridSrc2AxisPosition,
46                                                std::map<int, int>& elementPositionInGridSrc2DomainPosition,
47                                                std::map<int, int>& elementPositionInGridDst2ScalarPosition,
48                                                std::map<int, int>& elementPositionInGridDst2AxisPosition,
49                                                std::map<int, int>& elementPositionInGridDst2DomainPosition);
50  static bool dummyRegistered_;
51};
52
53}
54#endif // __XIOS_AXIS_ALGORITHM_INVERSE_HPP__
Note: See TracBrowser for help on using the repository browser.