Ignore:
Timestamp:
10/16/12 13:04:44 (12 years ago)
Author:
ymipsl
Message:

Major Update

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

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/functor/instant.cpp

    r335 r369  
    11#include "instant.hpp" 
     2#include "array_new.hpp" 
    23 
    34namespace xios 
     
    78      /// ////////////////////// Définitions ////////////////////// /// 
    89 
    9       CInstant::CInstant(DoubleArray doutput) 
     10      CInstant::CInstant(CArray<double,1>& doutput) 
    1011         : SuperClass(StdString("instant"), doutput) 
    1112      { /* Ne rien faire de plus */ } 
     
    1617      //--------------------------------------------------------------- 
    1718 
    18       void CInstant::apply(const DoubleArray _dinput, 
    19                                  DoubleArray _doutput) 
     19      void CInstant::apply(const CArray<double,1>& _dinput, 
     20                                 CArray<double,1>& _doutput) 
    2021      { 
    21          const double * it1  = _dinput->data(), 
     22/*               const double * it1  = _dinput->data(), 
    2223                      * end1 = _dinput->data() + _dinput->num_elements(); 
    2324         double * it   = _doutput->data(); 
    24          for (; it1 != end1; it1++, it++) *it  = *it1; 
     25         for (; it1 != end1; it1++, it++) *it  = *it1;*/ 
     26        _doutput=_dinput ; 
    2527      } 
    2628 
Note: See TracChangeset for help on using the changeset viewer.