source: XIOS/trunk/src/functor/once.cpp @ 449

Last change on this file since 449 was 369, checked in by ymipsl, 12 years ago

Major Update

  • redesign Type and attribute manipulation
  • add enumerate type and attribute
  • use blitz class array instead of boost class array

YM

File size: 945 bytes
RevLine 
[219]1#include "once.hpp"
[369]2#include "array_new.hpp"
[219]3
[335]4namespace xios
[219]5{
6   namespace func
7   {
8      /// ////////////////////// Définitions ////////////////////// ///
9
[369]10      COnce::COnce(CArray<double,1>& doutput)
[219]11         : SuperClass(StdString("once"), doutput)
12      { /* Ne rien faire de plus */ }
13
14      COnce::~COnce(void)
15      { /* Ne rien faire de plus */ }
16
17      //---------------------------------------------------------------
18
[369]19      void COnce::apply(const CArray<double,1>& _dinput,
20                              CArray<double,1>& _doutput)
[219]21      {
[369]22/*               const double * it1  = _dinput->data(),
[266]23                      * end1 = _dinput->data() + _dinput->num_elements();
24               double * it   = _doutput->data();
[369]25        for (; it1 != end1; it1++, it++) *it  = *it1;*/
26        _doutput=_dinput ;
[219]27      }
28
29      //---------------------------------------------------------------
30
31   } // namespace func
32} // namespace xmlioserver
33
Note: See TracBrowser for help on using the repository browser.