source: XIOS/trunk/src/node/temporal_splitting.cpp @ 2280

Last change on this file since 2280 was 1275, checked in by ymipsl, 7 years ago

implement diurnal cycle transformation taken as a grid tranformation : scalar -> axis

YM

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1#include "temporal_splitting.hpp"
2#include "type.hpp"
3#include "axis.hpp"
4#include "domain.hpp"
5#include "scalar.hpp"
6
7namespace xios {
8
9  /// ////////////////////// Définitions ////////////////////// ///
10
11  CTemporalSplitting::CTemporalSplitting(void)
12    : CObjectTemplate<CTemporalSplitting>(), CTemporalSplittingAttributes(), CTransformation<CAxis>()
13  { /* Ne rien faire de plus */ }
14
15  CTemporalSplitting::CTemporalSplitting(const StdString & id)
16    : CObjectTemplate<CTemporalSplitting>(id), CTemporalSplittingAttributes(), CTransformation<CAxis>()
17  { /* Ne rien faire de plus */ }
18
19  CTemporalSplitting::~CTemporalSplitting(void)
20  {}
21
22  CTransformation<CAxis>* CTemporalSplitting::create(const StdString& id, xml::CXMLNode* node)
23  {
24    CTemporalSplitting* temporalSplitting = CTemporalSplittingGroup::get("temporal_splitting_definition")->createChild(id);
25    if (node) temporalSplitting->parse(*node);
26    return static_cast<CTransformation<CAxis>*>(temporalSplitting);
27  }
28
29  bool CTemporalSplitting::registerTrans()
30  {
31    return registerTransformation(TRANS_TEMPORAL_SPLITTING, CTemporalSplitting::create);
32  }
33
34  bool CTemporalSplitting::_dummyRegistered = CTemporalSplitting::registerTrans();
35
36  //----------------------------------------------------------------
37
38  StdString CTemporalSplitting::GetName(void)    { return StdString("temporal_splitting"); }
39  StdString CTemporalSplitting::GetDefName(void) { return StdString("temporal_splitting"); }
40  ENodeType CTemporalSplitting::GetType(void)    { return eTemporalSplitting; }
41
42  void CTemporalSplitting::checkValid(CAxis* axisDst, CScalar* scalarSrc)
43  {
44
45  }
46
47}
Note: See TracBrowser for help on using the repository browser.