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

    r779 r817  
    189189 
    190190 
     191  void cxios_set_axisgroup_index(axisgroup_Ptr axisgroup_hdl, int* index, int* extent) 
     192  { 
     193    CTimer::get("XIOS").resume(); 
     194    CArray<int,1> tmp(index, shape(extent[0]), neverDeleteData); 
     195    axisgroup_hdl->index.reference(tmp.copy()); 
     196     CTimer::get("XIOS").suspend(); 
     197  } 
     198 
     199  void cxios_get_axisgroup_index(axisgroup_Ptr axisgroup_hdl, int* index, int* extent) 
     200  { 
     201    CTimer::get("XIOS").resume(); 
     202    CArray<int,1> tmp(index, shape(extent[0]), neverDeleteData); 
     203    tmp=axisgroup_hdl->index.getInheritedValue(); 
     204     CTimer::get("XIOS").suspend(); 
     205  } 
     206 
     207  bool cxios_is_defined_axisgroup_index(axisgroup_Ptr axisgroup_hdl) 
     208  { 
     209     CTimer::get("XIOS").resume(); 
     210     bool isDefined = axisgroup_hdl->index.hasInheritedValue(); 
     211     CTimer::get("XIOS").suspend(); 
     212     return isDefined; 
     213  } 
     214 
     215 
    191216  void cxios_set_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, const char * long_name, int long_name_size) 
    192217  { 
Note: See TracChangeset for help on using the changeset viewer.