Changeset 790 for XIOS/trunk/src/interface/c_attr/icfield_attr.cpp
- Timestamp:
- 11/16/15 16:21:45 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c_attr/icfield_attr.cpp
r711 r790 287 287 288 288 289 void cxios_set_field_grid_path(field_Ptr field_hdl, const char * grid_path, int grid_path_size) 290 { 291 std::string grid_path_str; 292 if (!cstr2string(grid_path, grid_path_size, grid_path_str)) return; 293 CTimer::get("XIOS").resume(); 294 field_hdl->grid_path.setValue(grid_path_str); 295 CTimer::get("XIOS").suspend(); 296 } 297 298 void cxios_get_field_grid_path(field_Ptr field_hdl, char * grid_path, int grid_path_size) 299 { 300 CTimer::get("XIOS").resume(); 301 if (!string_copy(field_hdl->grid_path.getInheritedValue(), grid_path, grid_path_size)) 302 ERROR("void cxios_get_field_grid_path(field_Ptr field_hdl, char * grid_path, int grid_path_size)", << "Input string is too short"); 303 CTimer::get("XIOS").suspend(); 304 } 305 306 bool cxios_is_defined_field_grid_path(field_Ptr field_hdl) 307 { 308 CTimer::get("XIOS").resume(); 309 bool isDefined = field_hdl->grid_path.hasInheritedValue(); 310 CTimer::get("XIOS").suspend(); 311 return isDefined; 312 } 313 314 289 315 void cxios_set_field_grid_ref(field_Ptr field_hdl, const char * grid_ref, int grid_ref_size) 290 316 {
Note: See TracChangeset
for help on using the changeset viewer.