source: XIOS/dev/dev_ym/XIOS_COUPLING/src/filter/temporal_transform_filter.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.2 KB
Line 
1#ifndef __XIOS_TEMPORAL_TRANSFORM_FILTER_HPP__
2#define __XIOS_TEMPORAL_TRANSFORM_FILTER_HPP__
3
4#include "transform_filter.hpp"
5
6namespace xios
7{
8 
9  /*!
10   * A generic filter with multiple input slots wrapping any type of spatial transformations.
11   */
12  class CTemporalTransformFilter : public CTransformFilter
13  {
14    public:
15
16      CTemporalTransformFilter(CGarbageCollector& gc, CGridAlgorithm* algo, int nrecords, bool detectMissingValues, double defaultValue) ;
17
18    protected:
19      /*!
20        Overriding this function to process transformations with auxillary inputs
21      */
22      CDataPacketPtr virtual apply(std::vector<CDataPacketPtr> data) ;
23//      void apply(const CArray<double, 1>& dataSrc, CArray<double,1>& dataDest);
24
25       /*!
26        Overriding this function to process transformations with auxillary inputs
27      */
28//      void virtual onInputReady(std::vector<CDataPacketPtr> data);
29      //! Current record in the filter
30      int record_=0 ;
31      //! Maximum number of records
32      int nrecords_;
33      //! Temporary storage for output flux
34      vector<CArray<double, 1>> tmpData_; 
35  }; // class CTransformFilter
36
37
38} // namespace xios
39
40#endif //__XIOS_TEMPORAL_TRANSFORM_FILTER_HPP__
Note: See TracBrowser for help on using the repository browser.