source: XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/algorithm_transformation_no_data_modification.cpp @ 2287

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

Tracking memory leak :
Tranformations and algorithms are now managed with shared_ptr.

YM

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 625 bytes
RevLine 
[1997]1#include "algorithm_transformation_no_data_modification.hpp"
[2007]2#include "grid_algorithm_no_data_modification.hpp"
3#include "grid.hpp"
[1997]4
5namespace xios
6{
7  void CAlgorithmTransformationNoDataModification::apply(int dimBefore, int dimAfter, const CArray<double,1>& dataIn, CArray<double,1>& dataOut)
8  {
9    dataOut.reference(dataIn) ;
10  }
11 
[2270]12  shared_ptr<CGridAlgorithm> CAlgorithmTransformationNoDataModification::createGridAlgorithm(CGrid* gridSrc, CGrid* gridDst, int pos)
[2007]13  {
[2270]14    return make_shared<CGridAlgorithmNoDataModification>(static_pointer_cast<CAlgorithmTransformationNoDataModification>(shared_from_this())) ;
[2007]15  }
[1997]16}
Note: See TracBrowser for help on using the repository browser.