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/node/field_impl.hpp

    r352 r369  
    88#include "grid.hpp" 
    99#include "timer.hpp" 
    10 #include "array.hpp" 
     10#include "array_new.hpp" 
     11 
    1112 
    1213namespace xios { 
    1314 
    14    template <StdSize N> 
    15    void CField::setData(const ARRAY(double, N) _data) 
     15   template <int N> 
     16   void CField::setData(const CArray<double, N>& _data) 
    1617   { 
    1718     const std::vector<CField*>& refField=getAllReference(); 
     
    2122    } 
    2223     
    23    template <StdSize N> 
    24       bool CField::updateData(const ARRAY(double, N) _data) 
     24   template <int N> 
     25      bool CField::updateData(const CArray<double, N>& _data) 
    2526   {         
    2627      CContext* context=CContext::getCurrent(); 
     
    3536      if (opeDate <= currDate) 
    3637      { 
    37          if (this->data->num_elements() != this->grid->storeIndex_client->num_elements()) 
     38         if (this->data.numElements() != this->grid->storeIndex_client.numElements()) 
    3839         { 
    39             this->data->resize(boost::extents[this->grid->storeIndex_client ->num_elements()]); 
     40            this->data.resize(this->grid->storeIndex_client.numElements()); 
    4041         } 
    4142             
    42          ARRAY_CREATE(input, double, 1, [this->data->num_elements()]); 
     43         CArray<double,1> input(data.numElements()) ; 
    4344         this->grid->inputField(_data, input);           
    4445         (*this->foperation)(input); 
Note: See TracChangeset for help on using the changeset viewer.