source: XIOS/trunk/src/transformation/domain_algorithm_expand.hpp @ 935

Last change on this file since 935 was 935, checked in by mhnguyen, 5 years ago

Adding interface for expand_domain

File size: 1.7 KB
Line 
1/*!
2   \file domain_algorithm_expand.hpp
3   \author Ha NGUYEN
4   \since 08 Aug 2016
5   \date 08 Aug 2016
6
7   \brief Algorithm for expanding an domain.
8 */
9#ifndef __XIOS_DOMAIN_ALGORITHM_EXPAND_HPP__
10#define __XIOS_DOMAIN_ALGORITHM_EXPAND_HPP__
11
12#include "domain_algorithm_transformation.hpp"
13#include "transformation.hpp"
14
15namespace xios {
16class CDomain;
17class CExpandDomain;
18
19/*!
20  \class CDomainAlgorithmExpand
21*/
22class CDomainAlgorithmExpand : public CDomainAlgorithmTransformation
23{
24public:
25  CDomainAlgorithmExpand(CDomain* domainDestination, CDomain* domainSource, CExpandDomain* expandDomain);
26
27  virtual ~CDomainAlgorithmExpand() {}
28
29  static bool registerTrans();
30protected:
31  void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs);
32
33private:
34  static CGenericAlgorithmTransformation* create(CGrid* gridDst, CGrid* gridSrc,
35                                                CTransformation<CDomain>* transformation,
36                                                int elementPositionInGrid,
37                                                std::map<int, int>& elementPositionInGridSrc2ScalarPosition,
38                                                std::map<int, int>& elementPositionInGridSrc2AxisPosition,
39                                                std::map<int, int>& elementPositionInGridSrc2DomainPosition,
40                                                std::map<int, int>& elementPositionInGridDst2ScalarPosition,
41                                                std::map<int, int>& elementPositionInGridDst2AxisPosition,
42                                                std::map<int, int>& elementPositionInGridDst2DomainPosition);
43};
44
45}
46#endif // __XIOS_DOMAIN_ALGORITHM_EXPAND_HPP__
Note: See TracBrowser for help on using the repository browser.