source: XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/algorithm_transformation_transfer.hpp @ 1999

Last change on this file since 1999 was 1999, checked in by ymipsl, 3 years ago

Adapt transformation algorithm to new infrastructure (on going...)

YM

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#ifndef __XIOS_ALGORITHM_TRANSFORMATION_TRANSFER_HPP__
2#define __XIOS_ALGORITHM_TRANSFORMATION_TRANSFER_HPP__
3
4#include "generic_algorithm_transformation.hpp"
5#include "transfer_transform_connector.hpp"
6#include "array_new.hpp"
7
8namespace xios
9{
10
11  class CAlgorithmTransformationTransfer : public CGenericAlgorithmTransformation
12  {
13    public:
14
15      CAlgorithmTransformationTransfer(bool isSource) : CGenericAlgorithmTransformation(isSource) {}
16      virtual ~CAlgorithmTransformationTransfer() {};
17      virtual void apply(int dimBefore, int dimAfter, const CArray<double,1>& dataIn, CArray<double,1>& dataOut);
18      void computeRecvElement(CLocalView* srcView, CLocalView* dstView) ;
19   
20    protected:
21      virtual void computeAlgorithm(CLocalView* srcView, CLocalView* dstView) ;
22
23      //! Map between global index of destination element and source element
24      unordered_map<int,int> transformationMapping_;
25   
26      CTransformConnector* transformConnector_ ;
27      CTransferTransformConnector* transferTransformConnector_ ;
28  };
29
30}
31#endif //__XIOS_ALGORITHM_TRANSFORMATION_TRANSFER_HPP__
Note: See TracBrowser for help on using the repository browser.