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

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

Adding new transformation: Compute_connectivity_domain

Test
+) On Curie
+) Test passes

File size: 1.5 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"
[934]13#include "grid_transformation_factory_impl.hpp"
[620]14
15namespace xios {
16
[867]17class CAxis;
[895]18class CDomain;
19
[624]20/*!
21  \class CAxisAlgorithmTransformation
22  Algorithms for axis.
23*/
[620]24class CAxisAlgorithmTransformation : public virtual CGenericAlgorithmTransformation
25{
26public:
[622]27  CAxisAlgorithmTransformation(CAxis* axisDestination, CAxis* axisSource);
[895]28  CAxisAlgorithmTransformation(CAxis* axisDestination, CDomain* domainSource);
[620]29
[621]30  virtual ~CAxisAlgorithmTransformation();
31
[620]32protected:
[827]33  void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs);
34
[867]35  virtual void computeExchangeGlobalIndex(const CArray<size_t,1>& globalAxisIndex,
[888]36                                          int elementType,
[867]37                                          CClientClientDHTInt::Index2VectorInfoTypeMap& globalDomainIndexOnProc);
[862]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_;
[895]51
52  //! Domain on grid source
53  CDomain* domainSrc_;
[620]54};
55
56}
57#endif // __XIOS_AXIS_ALGORITHM_TRANSFORMATION_HPP__
Note: See TracBrowser for help on using the repository browser.