source: XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/algorithm_transformation_no_data_modification.hpp @ 1997

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

New transformation algorithm created that can be inherited more specifically for a given transformation :

  • no_data_modification : only the element is modifed, the data are not modofied
  • transfer : data is juste transfered from source element to destination element
  • weight : destination data is composed of sum of source data associated to a weight

YM

  • Property svn:executable set to *
File size: 721 bytes
Line 
1#ifndef __XIOS_ALGORITHM_TRANSFORMATION_NO_DATA_MODIFICATION_HPP__
2#define __XIOS_ALGORITHM_TRANSFORMATION_NO_DATA_MODIFICATION_HPP__
3
4#include "generic_algorithm_transformation.hpp"
5#include "array_new.hpp"
6
7namespace xios
8{
9
10  class CAlgorithmTransformationNoDataModification : public CGenericAlgorithmTransformation
11  {
12    public:
13
14      CAlgorithmTransformationNoDataModification(bool isSource) : CGenericAlgorithmTransformation(isSource) {}
15      virtual ~CAlgorithmTransformationNoDataModification() {};
16      virtual void apply(int dimBefore, int dimAfter, const CArray<double,1>& dataIn, CArray<double,1>& dataOut);
17  };
18
19}
20#endif //__XIOS_ALGORITHM_TRANSFORMATION_NO_DATA_MODIFICATION_HPP__
Note: See TracBrowser for help on using the repository browser.