- Timestamp:
- 04/24/18 18:03:18 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/interface/c_attr/icfield_attr.cpp
r1201 r1492 142 142 143 143 144 void cxios_set_field_comment(field_Ptr field_hdl, const char * comment, int comment_size) 145 { 146 std::string comment_str; 147 if (!cstr2string(comment, comment_size, comment_str)) return; 148 CTimer::get("XIOS").resume(); 149 field_hdl->comment.setValue(comment_str); 150 CTimer::get("XIOS").suspend(); 151 } 152 153 void cxios_get_field_comment(field_Ptr field_hdl, char * comment, int comment_size) 154 { 155 CTimer::get("XIOS").resume(); 156 if (!string_copy(field_hdl->comment.getInheritedValue(), comment, comment_size)) 157 ERROR("void cxios_get_field_comment(field_Ptr field_hdl, char * comment, int comment_size)", << "Input string is too short"); 158 CTimer::get("XIOS").suspend(); 159 } 160 161 bool cxios_is_defined_field_comment(field_Ptr field_hdl) 162 { 163 CTimer::get("XIOS").resume(); 164 bool isDefined = field_hdl->comment.hasInheritedValue(); 165 CTimer::get("XIOS").suspend(); 166 return isDefined; 167 } 168 169 144 170 void cxios_set_field_compression_level(field_Ptr field_hdl, int compression_level) 145 171 {
Note: See TracChangeset
for help on using the changeset viewer.