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.cpp

    r335 r369  
    11#include "functor.hpp" 
     2#include "array_new.hpp" 
    23 
    34namespace xios 
     
    78      /// ////////////////////// Définitions ////////////////////// /// 
    89 
    9       CFunctor::CFunctor(const StdString & id, ARRAY(double, 1) doutput) 
     10      CFunctor::CFunctor(const StdString & id, CArray<double, 1>& doutput) 
    1011         : SuperClass(id), doutput(doutput), nbcall(0) 
    1112      { /* Ne rien faire de plus */  } 
     
    1617      //--------------------------------------------------------------- 
    1718 
    18       ARRAY(double, 1) CFunctor::getDataOutput(void) const 
     19      CArray<double,1> CFunctor::getDataOutput(void) const 
    1920      {  
    2021         return (this->doutput); 
     
    3738      //--------------------------------------------------------------- 
    3839 
    39       ARRAY(double, 1) CFunctor::operator ()(const ARRAY(double, 1) dinput) 
     40      CArray<double,1> CFunctor::operator ()(const CArray<double,1>& dinput) 
    4041      { 
    4142         this->nbcall++; 
    42          if (dinput->size() != this->doutput->size()) 
     43         if (dinput.numElements() != this->doutput.numElements()) 
    4344            ERROR("CFunctor::operator ()(dinput)", 
    44                    << "[ input size = "  << dinput->size() 
    45                    << ", output size = " << this->doutput->size() << " ]" 
     45                   << "[ input size = "  << dinput.numElements() 
     46                   << ", output size = " << this->doutput.numElements() << " ]" 
    4647                   << " size of input array !=  size of output array !"); 
    4748         this->apply(dinput, this->doutput); 
Note: See TracChangeset for help on using the changeset viewer.