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

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

Graph intermedia commit to a tmp branch

• Property svn:executable set to `*`
File size: 1.7 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
33
34private:
35  CAxis* axisSrc_;
36  CAxis* axisDest_;
37  void updateAxisValue();
38
39public:
40 static CGenericAlgorithmTransformation* create(bool isSource, CGrid* gridDst, CGrid* gridSrc,
41                                                CTransformation<CAxis>* transformation,
42                                                int elementPositionInGrid,
43                                                std::map<int, int>& elementPositionInGridSrc2ScalarPosition,
44                                                std::map<int, int>& elementPositionInGridSrc2AxisPosition,
45                                                std::map<int, int>& elementPositionInGridSrc2DomainPosition,
46                                                std::map<int, int>& elementPositionInGridDst2ScalarPosition,
47                                                std::map<int, int>& elementPositionInGridDst2AxisPosition,
48                                                std::map<int, int>& elementPositionInGridDst2DomainPosition);
49  static bool dummyRegistered_;
50};
51
52}
53#endif // __XIOS_AXIS_ALGORITHM_INVERSE_HPP__
Note: See TracBrowser for help on using the repository browser.