Changeset 608 for XIOS/trunk/src/interface/fortran_attr/ifile_attr.F90
- Timestamp:
- 06/05/15 15:42:02 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/fortran_attr/ifile_attr.F90
r598 r608 12 12 13 13 SUBROUTINE xios(set_file_attr) & 14 ( file_id, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq&15 , output_ level, par_access, split_freq, split_freq_format, sync_freq, type )14 ( file_id, append, compression_level, description, enabled, format, min_digits, mode, name, name_suffix & 15 , output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 16 16 17 17 IMPLICIT NONE … … 20 20 LOGICAL , OPTIONAL, INTENT(IN) :: append 21 21 LOGICAL (KIND=C_BOOL) :: append_tmp 22 INTEGER , OPTIONAL, INTENT(IN) :: compression_level 22 23 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: description 23 24 LOGICAL , OPTIONAL, INTENT(IN) :: enabled … … 38 39 CALL xios(get_file_handle)(file_id,file_hdl) 39 40 CALL xios(set_file_attr_hdl_) & 40 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 41 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 41 ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name & 42 , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq & 43 , type ) 42 44 43 45 END SUBROUTINE xios(set_file_attr) 44 46 45 47 SUBROUTINE xios(set_file_attr_hdl) & 46 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 47 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 48 ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name & 49 , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq & 50 , type ) 48 51 49 52 IMPLICIT NONE … … 51 54 LOGICAL , OPTIONAL, INTENT(IN) :: append 52 55 LOGICAL (KIND=C_BOOL) :: append_tmp 56 INTEGER , OPTIONAL, INTENT(IN) :: compression_level 53 57 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: description 54 58 LOGICAL , OPTIONAL, INTENT(IN) :: enabled … … 68 72 69 73 CALL xios(set_file_attr_hdl_) & 70 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 71 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 74 ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name & 75 , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq & 76 , type ) 72 77 73 78 END SUBROUTINE xios(set_file_attr_hdl) 74 79 75 80 SUBROUTINE xios(set_file_attr_hdl_) & 76 ( file_hdl, append_, description_, enabled_, format_, min_digits_, mode_, name_, name_suffix_ &77 , output_freq_, output_level_, par_access_, split_freq_, split_freq_format_, sync_freq_, type_ &78 )81 ( file_hdl, append_, compression_level_, description_, enabled_, format_, min_digits_, mode_ & 82 , name_, name_suffix_, output_freq_, output_level_, par_access_, split_freq_, split_freq_format_ & 83 , sync_freq_, type_ ) 79 84 80 85 IMPLICIT NONE … … 82 87 LOGICAL , OPTIONAL, INTENT(IN) :: append_ 83 88 LOGICAL (KIND=C_BOOL) :: append__tmp 89 INTEGER , OPTIONAL, INTENT(IN) :: compression_level_ 84 90 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: description_ 85 91 LOGICAL , OPTIONAL, INTENT(IN) :: enabled_ … … 103 109 ENDIF 104 110 111 IF (PRESENT(compression_level_)) THEN 112 CALL cxios_set_file_compression_level(file_hdl%daddr, compression_level_) 113 ENDIF 114 105 115 IF (PRESENT(description_)) THEN 106 116 CALL cxios_set_file_description(file_hdl%daddr, description_, len(description_)) … … 163 173 164 174 SUBROUTINE xios(get_file_attr) & 165 ( file_id, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq&166 , output_ level, par_access, split_freq, split_freq_format, sync_freq, type )175 ( file_id, append, compression_level, description, enabled, format, min_digits, mode, name, name_suffix & 176 , output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 167 177 168 178 IMPLICIT NONE … … 171 181 LOGICAL , OPTIONAL, INTENT(OUT) :: append 172 182 LOGICAL (KIND=C_BOOL) :: append_tmp 183 INTEGER , OPTIONAL, INTENT(OUT) :: compression_level 173 184 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: description 174 185 LOGICAL , OPTIONAL, INTENT(OUT) :: enabled … … 189 200 CALL xios(get_file_handle)(file_id,file_hdl) 190 201 CALL xios(get_file_attr_hdl_) & 191 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 192 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 202 ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name & 203 , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq & 204 , type ) 193 205 194 206 END SUBROUTINE xios(get_file_attr) 195 207 196 208 SUBROUTINE xios(get_file_attr_hdl) & 197 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 198 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 209 ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name & 210 , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq & 211 , type ) 199 212 200 213 IMPLICIT NONE … … 202 215 LOGICAL , OPTIONAL, INTENT(OUT) :: append 203 216 LOGICAL (KIND=C_BOOL) :: append_tmp 217 INTEGER , OPTIONAL, INTENT(OUT) :: compression_level 204 218 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: description 205 219 LOGICAL , OPTIONAL, INTENT(OUT) :: enabled … … 219 233 220 234 CALL xios(get_file_attr_hdl_) & 221 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 222 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 235 ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name & 236 , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq & 237 , type ) 223 238 224 239 END SUBROUTINE xios(get_file_attr_hdl) 225 240 226 241 SUBROUTINE xios(get_file_attr_hdl_) & 227 ( file_hdl, append_, description_, enabled_, format_, min_digits_, mode_, name_, name_suffix_ &228 , output_freq_, output_level_, par_access_, split_freq_, split_freq_format_, sync_freq_, type_ &229 )242 ( file_hdl, append_, compression_level_, description_, enabled_, format_, min_digits_, mode_ & 243 , name_, name_suffix_, output_freq_, output_level_, par_access_, split_freq_, split_freq_format_ & 244 , sync_freq_, type_ ) 230 245 231 246 IMPLICIT NONE … … 233 248 LOGICAL , OPTIONAL, INTENT(OUT) :: append_ 234 249 LOGICAL (KIND=C_BOOL) :: append__tmp 250 INTEGER , OPTIONAL, INTENT(OUT) :: compression_level_ 235 251 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: description_ 236 252 LOGICAL , OPTIONAL, INTENT(OUT) :: enabled_ … … 254 270 ENDIF 255 271 272 IF (PRESENT(compression_level_)) THEN 273 CALL cxios_get_file_compression_level(file_hdl%daddr, compression_level_) 274 ENDIF 275 256 276 IF (PRESENT(description_)) THEN 257 277 CALL cxios_get_file_description(file_hdl%daddr, description_, len(description_)) … … 314 334 315 335 SUBROUTINE xios(is_defined_file_attr) & 316 ( file_id, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq&317 , output_ level, par_access, split_freq, split_freq_format, sync_freq, type )336 ( file_id, append, compression_level, description, enabled, format, min_digits, mode, name, name_suffix & 337 , output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 318 338 319 339 IMPLICIT NONE … … 322 342 LOGICAL, OPTIONAL, INTENT(OUT) :: append 323 343 LOGICAL(KIND=C_BOOL) :: append_tmp 344 LOGICAL, OPTIONAL, INTENT(OUT) :: compression_level 345 LOGICAL(KIND=C_BOOL) :: compression_level_tmp 324 346 LOGICAL, OPTIONAL, INTENT(OUT) :: description 325 347 LOGICAL(KIND=C_BOOL) :: description_tmp … … 353 375 CALL xios(get_file_handle)(file_id,file_hdl) 354 376 CALL xios(is_defined_file_attr_hdl_) & 355 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 356 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 377 ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name & 378 , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq & 379 , type ) 357 380 358 381 END SUBROUTINE xios(is_defined_file_attr) 359 382 360 383 SUBROUTINE xios(is_defined_file_attr_hdl) & 361 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 362 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 384 ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name & 385 , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq & 386 , type ) 363 387 364 388 IMPLICIT NONE … … 366 390 LOGICAL, OPTIONAL, INTENT(OUT) :: append 367 391 LOGICAL(KIND=C_BOOL) :: append_tmp 392 LOGICAL, OPTIONAL, INTENT(OUT) :: compression_level 393 LOGICAL(KIND=C_BOOL) :: compression_level_tmp 368 394 LOGICAL, OPTIONAL, INTENT(OUT) :: description 369 395 LOGICAL(KIND=C_BOOL) :: description_tmp … … 396 422 397 423 CALL xios(is_defined_file_attr_hdl_) & 398 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 399 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 424 ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name & 425 , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq & 426 , type ) 400 427 401 428 END SUBROUTINE xios(is_defined_file_attr_hdl) 402 429 403 430 SUBROUTINE xios(is_defined_file_attr_hdl_) & 404 ( file_hdl, append_, description_, enabled_, format_, min_digits_, mode_, name_, name_suffix_ &405 , output_freq_, output_level_, par_access_, split_freq_, split_freq_format_, sync_freq_, type_ &406 )431 ( file_hdl, append_, compression_level_, description_, enabled_, format_, min_digits_, mode_ & 432 , name_, name_suffix_, output_freq_, output_level_, par_access_, split_freq_, split_freq_format_ & 433 , sync_freq_, type_ ) 407 434 408 435 IMPLICIT NONE … … 410 437 LOGICAL, OPTIONAL, INTENT(OUT) :: append_ 411 438 LOGICAL(KIND=C_BOOL) :: append__tmp 439 LOGICAL, OPTIONAL, INTENT(OUT) :: compression_level_ 440 LOGICAL(KIND=C_BOOL) :: compression_level__tmp 412 441 LOGICAL, OPTIONAL, INTENT(OUT) :: description_ 413 442 LOGICAL(KIND=C_BOOL) :: description__tmp … … 444 473 ENDIF 445 474 475 IF (PRESENT(compression_level_)) THEN 476 compression_level__tmp = cxios_is_defined_file_compression_level(file_hdl%daddr) 477 compression_level_ = compression_level__tmp 478 ENDIF 479 446 480 IF (PRESENT(description_)) THEN 447 481 description__tmp = cxios_is_defined_file_description(file_hdl%daddr)
Note: See TracChangeset
for help on using the changeset viewer.