Ignore:
Timestamp:
01/26/16 18:19:09 (8 years ago)
Author:
mhnguyen
Message:

Adding some attributes for axis and grid (ticket 71, 78)

+) Add index attribute for axis
+) Change mask?d to mask_?d for grid

Test
+) On Curie
+) Test passes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/interface/c_attr/icaxis_attr.cpp

    r779 r817  
    163163 
    164164 
     165  void cxios_set_axis_index(axis_Ptr axis_hdl, int* index, int* extent) 
     166  { 
     167    CTimer::get("XIOS").resume(); 
     168    CArray<int,1> tmp(index, shape(extent[0]), neverDeleteData); 
     169    axis_hdl->index.reference(tmp.copy()); 
     170     CTimer::get("XIOS").suspend(); 
     171  } 
     172 
     173  void cxios_get_axis_index(axis_Ptr axis_hdl, int* index, int* extent) 
     174  { 
     175    CTimer::get("XIOS").resume(); 
     176    CArray<int,1> tmp(index, shape(extent[0]), neverDeleteData); 
     177    tmp=axis_hdl->index.getInheritedValue(); 
     178     CTimer::get("XIOS").suspend(); 
     179  } 
     180 
     181  bool cxios_is_defined_axis_index(axis_Ptr axis_hdl) 
     182  { 
     183     CTimer::get("XIOS").resume(); 
     184     bool isDefined = axis_hdl->index.hasInheritedValue(); 
     185     CTimer::get("XIOS").suspend(); 
     186     return isDefined; 
     187  } 
     188 
     189 
    165190  void cxios_set_axis_long_name(axis_Ptr axis_hdl, const char * long_name, int long_name_size) 
    166191  { 
Note: See TracChangeset for help on using the changeset viewer.