Changeset 2338 for XIOS/dev/dev_ym/XIOS_COUPLING/src/interface/c_attr
- Timestamp:
- 06/28/22 11:44:19 (2 years ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING/src/interface/c_attr
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/interface/c_attr/icfield_attr.cpp
r1626 r2338 66 66 67 67 68 void cxios_set_field_build_workflow_graph(field_Ptr field_hdl, bool build_workflow_graph) 69 { 70 CTimer::get("XIOS").resume(); 71 field_hdl->build_workflow_graph.setValue(build_workflow_graph); 72 CTimer::get("XIOS").suspend(); 73 } 74 75 void cxios_get_field_build_workflow_graph(field_Ptr field_hdl, bool* build_workflow_graph) 76 { 77 CTimer::get("XIOS").resume(); 78 *build_workflow_graph = field_hdl->build_workflow_graph.getInheritedValue(); 79 CTimer::get("XIOS").suspend(); 80 } 81 82 bool cxios_is_defined_field_build_workflow_graph(field_Ptr field_hdl) 83 { 84 CTimer::get("XIOS").resume(); 85 bool isDefined = field_hdl->build_workflow_graph.hasInheritedValue(); 86 CTimer::get("XIOS").suspend(); 87 return isDefined; 88 } 89 90 68 91 void cxios_set_field_cell_methods(field_Ptr field_hdl, const char * cell_methods, int cell_methods_size) 69 92 { -
XIOS/dev/dev_ym/XIOS_COUPLING/src/interface/c_attr/icfieldgroup_attr.cpp
r1626 r2338 66 66 67 67 68 void cxios_set_fieldgroup_build_workflow_graph(fieldgroup_Ptr fieldgroup_hdl, bool build_workflow_graph) 69 { 70 CTimer::get("XIOS").resume(); 71 fieldgroup_hdl->build_workflow_graph.setValue(build_workflow_graph); 72 CTimer::get("XIOS").suspend(); 73 } 74 75 void cxios_get_fieldgroup_build_workflow_graph(fieldgroup_Ptr fieldgroup_hdl, bool* build_workflow_graph) 76 { 77 CTimer::get("XIOS").resume(); 78 *build_workflow_graph = fieldgroup_hdl->build_workflow_graph.getInheritedValue(); 79 CTimer::get("XIOS").suspend(); 80 } 81 82 bool cxios_is_defined_fieldgroup_build_workflow_graph(fieldgroup_Ptr fieldgroup_hdl) 83 { 84 CTimer::get("XIOS").resume(); 85 bool isDefined = fieldgroup_hdl->build_workflow_graph.hasInheritedValue(); 86 CTimer::get("XIOS").suspend(); 87 return isDefined; 88 } 89 90 68 91 void cxios_set_fieldgroup_cell_methods(fieldgroup_Ptr fieldgroup_hdl, const char * cell_methods, int cell_methods_size) 69 92 { -
XIOS/dev/dev_ym/XIOS_COUPLING/src/interface/c_attr/icinterpolate_axis_attr.cpp
r1626 r2338 38 38 CTimer::get("XIOS").resume(); 39 39 bool isDefined = interpolate_axis_hdl->coordinate.hasInheritedValue(); 40 CTimer::get("XIOS").suspend(); 41 return isDefined; 42 } 43 44 45 void cxios_set_interpolate_axis_coordinate_dst(interpolate_axis_Ptr interpolate_axis_hdl, const char * coordinate_dst, int coordinate_dst_size) 46 { 47 std::string coordinate_dst_str; 48 if (!cstr2string(coordinate_dst, coordinate_dst_size, coordinate_dst_str)) return; 49 CTimer::get("XIOS").resume(); 50 interpolate_axis_hdl->coordinate_dst.setValue(coordinate_dst_str); 51 CTimer::get("XIOS").suspend(); 52 } 53 54 void cxios_get_interpolate_axis_coordinate_dst(interpolate_axis_Ptr interpolate_axis_hdl, char * coordinate_dst, int coordinate_dst_size) 55 { 56 CTimer::get("XIOS").resume(); 57 if (!string_copy(interpolate_axis_hdl->coordinate_dst.getInheritedValue(), coordinate_dst, coordinate_dst_size)) 58 ERROR("void cxios_get_interpolate_axis_coordinate_dst(interpolate_axis_Ptr interpolate_axis_hdl, char * coordinate_dst, int coordinate_dst_size)", << "Input string is too short"); 59 CTimer::get("XIOS").suspend(); 60 } 61 62 bool cxios_is_defined_interpolate_axis_coordinate_dst(interpolate_axis_Ptr interpolate_axis_hdl) 63 { 64 CTimer::get("XIOS").resume(); 65 bool isDefined = interpolate_axis_hdl->coordinate_dst.hasInheritedValue(); 66 CTimer::get("XIOS").suspend(); 67 return isDefined; 68 } 69 70 71 void cxios_set_interpolate_axis_coordinate_src(interpolate_axis_Ptr interpolate_axis_hdl, const char * coordinate_src, int coordinate_src_size) 72 { 73 std::string coordinate_src_str; 74 if (!cstr2string(coordinate_src, coordinate_src_size, coordinate_src_str)) return; 75 CTimer::get("XIOS").resume(); 76 interpolate_axis_hdl->coordinate_src.setValue(coordinate_src_str); 77 CTimer::get("XIOS").suspend(); 78 } 79 80 void cxios_get_interpolate_axis_coordinate_src(interpolate_axis_Ptr interpolate_axis_hdl, char * coordinate_src, int coordinate_src_size) 81 { 82 CTimer::get("XIOS").resume(); 83 if (!string_copy(interpolate_axis_hdl->coordinate_src.getInheritedValue(), coordinate_src, coordinate_src_size)) 84 ERROR("void cxios_get_interpolate_axis_coordinate_src(interpolate_axis_Ptr interpolate_axis_hdl, char * coordinate_src, int coordinate_src_size)", << "Input string is too short"); 85 CTimer::get("XIOS").suspend(); 86 } 87 88 bool cxios_is_defined_interpolate_axis_coordinate_src(interpolate_axis_Ptr interpolate_axis_hdl) 89 { 90 CTimer::get("XIOS").resume(); 91 bool isDefined = interpolate_axis_hdl->coordinate_src.hasInheritedValue(); 92 CTimer::get("XIOS").suspend(); 93 return isDefined; 94 } 95 96 97 void cxios_set_interpolate_axis_extrapolate(interpolate_axis_Ptr interpolate_axis_hdl, bool extrapolate) 98 { 99 CTimer::get("XIOS").resume(); 100 interpolate_axis_hdl->extrapolate.setValue(extrapolate); 101 CTimer::get("XIOS").suspend(); 102 } 103 104 void cxios_get_interpolate_axis_extrapolate(interpolate_axis_Ptr interpolate_axis_hdl, bool* extrapolate) 105 { 106 CTimer::get("XIOS").resume(); 107 *extrapolate = interpolate_axis_hdl->extrapolate.getInheritedValue(); 108 CTimer::get("XIOS").suspend(); 109 } 110 111 bool cxios_is_defined_interpolate_axis_extrapolate(interpolate_axis_Ptr interpolate_axis_hdl) 112 { 113 CTimer::get("XIOS").resume(); 114 bool isDefined = interpolate_axis_hdl->extrapolate.hasInheritedValue(); 40 115 CTimer::get("XIOS").suspend(); 41 116 return isDefined; -
XIOS/dev/dev_ym/XIOS_COUPLING/src/interface/c_attr/icreduce_axis_to_scalar_attr.cpp
r1626 r2338 16 16 { 17 17 typedef xios::CReduceAxisToScalar* reduce_axis_to_scalar_Ptr; 18 19 void cxios_set_reduce_axis_to_scalar_local(reduce_axis_to_scalar_Ptr reduce_axis_to_scalar_hdl, bool local) 20 { 21 CTimer::get("XIOS").resume(); 22 reduce_axis_to_scalar_hdl->local.setValue(local); 23 CTimer::get("XIOS").suspend(); 24 } 25 26 void cxios_get_reduce_axis_to_scalar_local(reduce_axis_to_scalar_Ptr reduce_axis_to_scalar_hdl, bool* local) 27 { 28 CTimer::get("XIOS").resume(); 29 *local = reduce_axis_to_scalar_hdl->local.getInheritedValue(); 30 CTimer::get("XIOS").suspend(); 31 } 32 33 bool cxios_is_defined_reduce_axis_to_scalar_local(reduce_axis_to_scalar_Ptr reduce_axis_to_scalar_hdl) 34 { 35 CTimer::get("XIOS").resume(); 36 bool isDefined = reduce_axis_to_scalar_hdl->local.hasInheritedValue(); 37 CTimer::get("XIOS").suspend(); 38 return isDefined; 39 } 40 18 41 19 42 void cxios_set_reduce_axis_to_scalar_operation(reduce_axis_to_scalar_Ptr reduce_axis_to_scalar_hdl, const char * operation, int operation_size) -
XIOS/dev/dev_ym/XIOS_COUPLING/src/interface/c_attr/icscalar_attr.cpp
r1941 r2338 195 195 196 196 197 void cxios_set_scalar_n(scalar_Ptr scalar_hdl, int n) 198 { 199 CTimer::get("XIOS").resume(); 200 scalar_hdl->n.setValue(n); 201 CTimer::get("XIOS").suspend(); 202 } 203 204 void cxios_get_scalar_n(scalar_Ptr scalar_hdl, int* n) 205 { 206 CTimer::get("XIOS").resume(); 207 *n = scalar_hdl->n.getInheritedValue(); 208 CTimer::get("XIOS").suspend(); 209 } 210 211 bool cxios_is_defined_scalar_n(scalar_Ptr scalar_hdl) 212 { 213 CTimer::get("XIOS").resume(); 214 bool isDefined = scalar_hdl->n.hasInheritedValue(); 215 CTimer::get("XIOS").suspend(); 216 return isDefined; 217 } 218 219 197 220 void cxios_set_scalar_name(scalar_Ptr scalar_hdl, const char * name, int name_size) 198 221 { -
XIOS/dev/dev_ym/XIOS_COUPLING/src/interface/c_attr/icscalargroup_attr.cpp
r1941 r2338 221 221 222 222 223 void cxios_set_scalargroup_n(scalargroup_Ptr scalargroup_hdl, int n) 224 { 225 CTimer::get("XIOS").resume(); 226 scalargroup_hdl->n.setValue(n); 227 CTimer::get("XIOS").suspend(); 228 } 229 230 void cxios_get_scalargroup_n(scalargroup_Ptr scalargroup_hdl, int* n) 231 { 232 CTimer::get("XIOS").resume(); 233 *n = scalargroup_hdl->n.getInheritedValue(); 234 CTimer::get("XIOS").suspend(); 235 } 236 237 bool cxios_is_defined_scalargroup_n(scalargroup_Ptr scalargroup_hdl) 238 { 239 CTimer::get("XIOS").resume(); 240 bool isDefined = scalargroup_hdl->n.hasInheritedValue(); 241 CTimer::get("XIOS").suspend(); 242 return isDefined; 243 } 244 245 223 246 void cxios_set_scalargroup_name(scalargroup_Ptr scalargroup_hdl, const char * name, int name_size) 224 247 {
Note: See TracChangeset
for help on using the changeset viewer.