source: XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/grid_algorithm_generic.hpp @ 2007

Last change on this file since 2007 was 2007, checked in by ymipsl, 3 years ago
  • fix some problem in transformation
  • implement new temporal splitting transformation

YM

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#ifndef __XIOS_GRID_ALGORITHM_GENERIC_HPP__
2#define __XIOS_GRID_ALGORITHM_GENERIC_HPP__
3
4#include "grid_transform_connector.hpp"
5#include <map>
6#include "array_new.hpp"
7#include "local_view.hpp"
8#include "grid_algorithm.hpp"
9
10namespace xios
11{
12  class CGrid;
13  class CGenericAlgorithmTransformation ;
14
15  /*!
16  \class CGenericAlgorithmTransformation
17  This class defines the interface for all other inherited algorithms class
18  */
19class CTransformFilter ;
20class CGarbageCollector ;
21
22class CGridAlgorithmGeneric : public CGridAlgorithm
23{
24  public:
25    CGridAlgorithmGeneric(CGrid* gridSrc, CGrid* gridDst, int pos,  CGenericAlgorithmTransformation* algo) ;
26    virtual ~CGridAlgorithmGeneric() {} ;
27
28    void computeAlgorithm(void) ;
29    virtual void apply(const CArray<double,1>& dataIn, CArray<double,1>& dataOut) ;
30 
31  protected:
32    CGridTransformConnector* gridTransformConnector_=nullptr ;
33    CGrid* gridSrc_ = nullptr ;
34    CGrid* gridDst_ = nullptr ;
35    int pos_ ;
36    int dimBefore_=1 ;
37    int dimAfter_=1 ;
38
39};
40
41}
42#endif // __XIOS_GRID_ALGORITHM_GENERIC_HPP__
Note: See TracBrowser for help on using the repository browser.