- Timestamp:
- 07/05/16 15:59:23 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c_attr/icinterpolate_axis_attr.cpp
r786 r891 17 17 { 18 18 typedef xios::CInterpolateAxis* interpolate_axis_Ptr; 19 20 void cxios_set_interpolate_axis_coordinate(interpolate_axis_Ptr interpolate_axis_hdl, const char * coordinate, int coordinate_size) 21 { 22 std::string coordinate_str; 23 if (!cstr2string(coordinate, coordinate_size, coordinate_str)) return; 24 CTimer::get("XIOS").resume(); 25 interpolate_axis_hdl->coordinate.setValue(coordinate_str); 26 CTimer::get("XIOS").suspend(); 27 } 28 29 void cxios_get_interpolate_axis_coordinate(interpolate_axis_Ptr interpolate_axis_hdl, char * coordinate, int coordinate_size) 30 { 31 CTimer::get("XIOS").resume(); 32 if (!string_copy(interpolate_axis_hdl->coordinate.getInheritedValue(), coordinate, coordinate_size)) 33 ERROR("void cxios_get_interpolate_axis_coordinate(interpolate_axis_Ptr interpolate_axis_hdl, char * coordinate, int coordinate_size)", << "Input string is too short"); 34 CTimer::get("XIOS").suspend(); 35 } 36 37 bool cxios_is_defined_interpolate_axis_coordinate(interpolate_axis_Ptr interpolate_axis_hdl) 38 { 39 CTimer::get("XIOS").resume(); 40 bool isDefined = interpolate_axis_hdl->coordinate.hasInheritedValue(); 41 CTimer::get("XIOS").suspend(); 42 return isDefined; 43 } 44 19 45 20 46 void cxios_set_interpolate_axis_order(interpolate_axis_Ptr interpolate_axis_hdl, int order)
Note: See TracChangeset
for help on using the changeset viewer.