Ignore:
Timestamp:
12/17/14 15:35:12 (10 years ago)
Author:
rlacroix
Message:

Update the Fortran interface after r540.

File:
1 edited

Legend:

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

    r532 r546  
    1818  typedef xios::CAxis*  axis_Ptr; 
    1919   
     20  void cxios_set_axis_axis_ref(axis_Ptr axis_hdl, const char * axis_ref, int axis_ref_size) 
     21  { 
     22    std::string axis_ref_str; 
     23    if(!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return; 
     24     CTimer::get("XIOS").resume(); 
     25    axis_hdl->axis_ref.setValue(axis_ref_str); 
     26     CTimer::get("XIOS").suspend(); 
     27  } 
     28   
     29  void cxios_get_axis_axis_ref(axis_Ptr axis_hdl, char * axis_ref, int axis_ref_size) 
     30  { 
     31     CTimer::get("XIOS").resume(); 
     32    if(!string_copy(axis_hdl->axis_ref.getInheritedValue(),axis_ref , axis_ref_size)) 
     33      ERROR("void cxios_get_axis_axis_ref(axis_Ptr axis_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short"); 
     34     CTimer::get("XIOS").suspend(); 
     35  } 
     36   
     37  bool cxios_is_defined_axis_axis_ref(axis_Ptr axis_hdl ) 
     38  { 
     39     CTimer::get("XIOS").resume(); 
     40    return axis_hdl->axis_ref.hasInheritedValue(); 
     41     CTimer::get("XIOS").suspend(); 
     42  } 
     43   
     44   
     45   
    2046  void cxios_set_axis_long_name(axis_Ptr axis_hdl, const char * long_name, int long_name_size) 
    2147  { 
Note: See TracChangeset for help on using the changeset viewer.