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

    r347 r369  
    1111#include "declare_group.hpp" 
    1212#include "calendar_util.hpp" 
     13#include "array_new.hpp" 
     14#include "attribute_array.hpp" 
    1315//#include "context.hpp" 
    1416 
     
    8082         boost::shared_ptr<func::CFunctor> getFieldOperation(void) const; 
    8183          
    82          ARRAY(double, 1) getData(void) const; 
     84         CArray<double, 1> getData(void) const; 
    8385 
    8486         const StdString & getBaseFieldId(void) const; 
     
    8991         void resetNStep() ; 
    9092 
    91          template <StdSize N> bool updateData(const ARRAY(double, N)   data); 
     93         template <int N> bool updateData(const CArray<double, N>&   data); 
    9294          
    9395         bool updateDataServer 
    9496               (const CDate & currDate, 
    95                 const std::deque<ARRAY(double, 1)> storedClient); 
     97                const std::deque< CArray<double, 1>* > storedClient); 
    9698  
    9799       public : 
     
    106108         void solveOperation(void); 
    107109 
    108          virtual void fromBinary(StdIStream & is); 
     110//         virtual void fromBinary(StdIStream & is); 
    109111 
    110112         /// Destructeur /// 
     
    117119         static ENodeType GetType(void); 
    118120          
    119         template <StdSize N> void setData(const ARRAY(double, N) _data) ; 
     121        template <int N> void setData(const CArray<double, N>& _data) ; 
    120122        static bool dispatchEvent(CEventServer& event) ; 
    121123        void sendUpdateData(void) ; 
     
    123125        void recvUpdateData(vector<int>& ranks, vector<CBufferIn*>& buffers) ; 
    124126        void writeField(void) ; 
    125         void outputField(ARRAY(double,3) fieldOut) ; 
    126         void outputField(ARRAY(double,2) fieldOut) ; 
     127        void outputField(CArray<double,3>& fieldOut) ; 
     128        void outputField(CArray<double,2>& fieldOut) ; 
    127129         
    128130      public : 
     
    145147         map<int,boost::shared_ptr<func::CFunctor> > foperation_srv; 
    146148          
    147          ARRAY(double, 1) data; 
    148          map<int,ARRAY(double,1)> data_srv ; 
     149         CArray<double, 1> data; 
     150         map<int, CArray<double,1>* > data_srv ; 
    149151 
    150152   }; // class CField 
Note: See TracChangeset for help on using the changeset viewer.