Ignore:
Timestamp:
12/16/14 12:55:53 (9 years ago)
Author:
mhnguyen
Message:

Reorganizing structure of grid

+) Grid doesn't have domain_ref and axis_ref anymore.
All domain and axis of a grid must be inside grid (These domain and axis can be defined or refer to others)
+) Grid contains list of domain and axis
+) Reorder some functions to make sure new functionlities work

Test
+) On Curie
+) Mode attached and detached
+) Only test_new_features
+) Passed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/axis.cpp

    r501 r540  
    99 
    1010namespace xios { 
    11     
     11 
    1212   /// ////////////////////// Définitions ////////////////////// /// 
    1313 
    1414   CAxis::CAxis(void) 
    1515      : CObjectTemplate<CAxis>() 
    16       , CAxisAttributes(), isChecked(false), relFiles() 
     16      , CAxisAttributes(), isChecked(false), relFiles(), baseRefObject() 
    1717   { /* Ne rien faire de plus */ } 
    1818 
    1919   CAxis::CAxis(const StdString & id) 
    2020      : CObjectTemplate<CAxis>(id) 
    21       , CAxisAttributes(), isChecked(false), relFiles() 
     21      , CAxisAttributes(), isChecked(false), relFiles(), baseRefObject() 
    2222   { /* Ne rien faire de plus */ } 
    2323 
     
    5656         ERROR("CAxis::checkAttributes(void)",<< "Attribut <size> of the axis must be specified") ; 
    5757      StdSize size = this->size.getValue(); 
    58        
     58 
    5959      StdSize zoom_begin,zoom_end, zoom_size ; 
    60        
     60 
    6161      zoom_begin = (this->zoom_begin.isEmpty()) ?  1 : this->zoom_begin.getValue() ; 
    62       zoom_end = (this->zoom_end.isEmpty()) ?  size : this->zoom_end.getValue() ;  
     62      zoom_end = (this->zoom_end.isEmpty()) ?  size : this->zoom_end.getValue() ; 
    6363      zoom_size = (this->zoom_size.isEmpty()) ?  size : this->zoom_size.getValue() ; 
    64        
     64 
    6565      if (this->zoom_begin.isEmpty()) zoom_begin=zoom_end-zoom_size+1 ; 
    6666      if (this->zoom_end.isEmpty()) zoom_end=zoom_begin+zoom_size-1 ; 
    6767      if (this->zoom_size.isEmpty()) zoom_size=zoom_end-zoom_begin+1 ; 
    68        
     68 
    6969      if ( (zoom_begin < 1) || (zoom_begin > size) || (zoom_end<1) || (zoom_end>size) || (zoom_size<1) || (zoom_size>size) || (zoom_begin>zoom_end)) 
    7070        ERROR("CAxis::checkAttributes(void)",<< "One or more attribut of <zoom_begin>, <zoom_end>, <zoom_size>, are not well specified") ; 
     
    7272      this->zoom_end.setValue(zoom_end) ; 
    7373      this->zoom_size.setValue(zoom_size) ; 
    74        
     74 
    7575      StdSize true_size = value.numElements(); 
    7676      if (size != true_size) 
     
    8181   } 
    8282 
     83   DEFINE_REF_FUNC(Axis,axis) 
     84 
    8385   ///--------------------------------------------------------------- 
    8486 
Note: See TracChangeset for help on using the changeset viewer.