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

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

Adding a new transformation: Reduce a domain to an axis

Test
+) On Curie
+) Tests pass and are correct

File size: 1.4 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
14namespace xios {
15
[867]16class CAxis;
[895]17class CDomain;
18
[624]19/*!
20  \class CAxisAlgorithmTransformation
21  Algorithms for axis.
22*/
[620]23class CAxisAlgorithmTransformation : public virtual CGenericAlgorithmTransformation
24{
25public:
[622]26  CAxisAlgorithmTransformation(CAxis* axisDestination, CAxis* axisSource);
[895]27  CAxisAlgorithmTransformation(CAxis* axisDestination, CDomain* domainSource);
[620]28
[621]29  virtual ~CAxisAlgorithmTransformation();
30
[620]31protected:
[827]32  void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs);
33
[867]34  virtual void computeExchangeGlobalIndex(const CArray<size_t,1>& globalAxisIndex,
[888]35                                          int elementType,
[867]36                                          CClientClientDHTInt::Index2VectorInfoTypeMap& globalDomainIndexOnProc);
[862]37
[620]38protected:
[624]39  //! Global index of an axis on grid destination
[622]40  std::vector<int> axisDestGlobalIndex_;
[624]41
42  //! Size of
[622]43  int axisDestGlobalSize_;
[620]44
[630]45    //! Axis on grid destination
46  CAxis* axisDest_;
47
48  //! Axis on grid source
49  CAxis* axisSrc_;
[895]50
51  //! Domain on grid source
52  CDomain* domainSrc_;
[620]53};
54
55}
56#endif // __XIOS_AXIS_ALGORITHM_TRANSFORMATION_HPP__
Note: See TracBrowser for help on using the repository browser.