Changeset 581 for XIOS/trunk/src/interface/fortran_attr/ifile_attr.F90
- Timestamp:
- 03/24/15 11:21:45 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/fortran_attr/ifile_attr.F90
r538 r581 8 8 USE ifile 9 9 USE file_interface_attr 10 10 11 11 CONTAINS 12 12 13 13 SUBROUTINE xios(set_file_attr) & 14 14 ( file_id, append, description, enabled, format, min_digits, name, name_suffix, output_freq & 15 15 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 16 16 17 17 IMPLICIT NONE 18 18 TYPE(txios(file)) :: file_hdl … … 34 34 TYPE(txios(duration)) , OPTIONAL, INTENT(IN) :: sync_freq 35 35 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: type 36 36 37 37 CALL xios(get_file_handle)(file_id,file_hdl) 38 38 CALL xios(set_file_attr_hdl_) & 39 39 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq & 40 40 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 41 41 42 42 END SUBROUTINE xios(set_file_attr) 43 43 44 44 SUBROUTINE xios(set_file_attr_hdl) & 45 45 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq & 46 46 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 47 47 48 48 IMPLICIT NONE 49 49 TYPE(txios(file)) , INTENT(IN) :: file_hdl … … 64 64 TYPE(txios(duration)) , OPTIONAL, INTENT(IN) :: sync_freq 65 65 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: type 66 66 67 67 CALL xios(set_file_attr_hdl_) & 68 68 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq & 69 69 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 70 70 71 71 END SUBROUTINE xios(set_file_attr_hdl) 72 72 73 73 SUBROUTINE xios(set_file_attr_hdl_) & 74 74 ( file_hdl, append_, description_, enabled_, format_, min_digits_, name_, name_suffix_, output_freq_ & 75 75 , output_level_, par_access_, split_freq_, split_freq_format_, sync_freq_, type_ ) 76 76 77 77 IMPLICIT NONE 78 78 TYPE(txios(file)) , INTENT(IN) :: file_hdl … … 93 93 TYPE(txios(duration)) , OPTIONAL, INTENT(IN) :: sync_freq_ 94 94 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: type_ 95 95 96 96 IF (PRESENT(append_)) THEN 97 append__tmp =append_97 append__tmp = append_ 98 98 CALL cxios_set_file_append(file_hdl%daddr, append__tmp) 99 99 ENDIF 100 100 101 101 IF (PRESENT(description_)) THEN 102 102 CALL cxios_set_file_description(file_hdl%daddr, description_, len(description_)) 103 103 ENDIF 104 104 105 105 IF (PRESENT(enabled_)) THEN 106 enabled__tmp =enabled_106 enabled__tmp = enabled_ 107 107 CALL cxios_set_file_enabled(file_hdl%daddr, enabled__tmp) 108 108 ENDIF 109 109 110 110 IF (PRESENT(format_)) THEN 111 111 CALL cxios_set_file_format(file_hdl%daddr, format_, len(format_)) 112 112 ENDIF 113 113 114 114 IF (PRESENT(min_digits_)) THEN 115 115 CALL cxios_set_file_min_digits(file_hdl%daddr, min_digits_) 116 116 ENDIF 117 117 118 118 IF (PRESENT(name_)) THEN 119 119 CALL cxios_set_file_name(file_hdl%daddr, name_, len(name_)) 120 120 ENDIF 121 121 122 122 IF (PRESENT(name_suffix_)) THEN 123 123 CALL cxios_set_file_name_suffix(file_hdl%daddr, name_suffix_, len(name_suffix_)) 124 124 ENDIF 125 125 126 126 IF (PRESENT(output_freq_)) THEN 127 127 CALL cxios_set_file_output_freq(file_hdl%daddr, output_freq_) 128 128 ENDIF 129 129 130 130 IF (PRESENT(output_level_)) THEN 131 131 CALL cxios_set_file_output_level(file_hdl%daddr, output_level_) 132 132 ENDIF 133 133 134 134 IF (PRESENT(par_access_)) THEN 135 135 CALL cxios_set_file_par_access(file_hdl%daddr, par_access_, len(par_access_)) 136 136 ENDIF 137 137 138 138 IF (PRESENT(split_freq_)) THEN 139 139 CALL cxios_set_file_split_freq(file_hdl%daddr, split_freq_) 140 140 ENDIF 141 141 142 142 IF (PRESENT(split_freq_format_)) THEN 143 143 CALL cxios_set_file_split_freq_format(file_hdl%daddr, split_freq_format_, len(split_freq_format_)) 144 144 ENDIF 145 145 146 146 IF (PRESENT(sync_freq_)) THEN 147 147 CALL cxios_set_file_sync_freq(file_hdl%daddr, sync_freq_) 148 148 ENDIF 149 149 150 150 IF (PRESENT(type_)) THEN 151 151 CALL cxios_set_file_type(file_hdl%daddr, type_, len(type_)) 152 152 ENDIF 153 154 155 153 156 154 END SUBROUTINE xios(set_file_attr_hdl_) 157 155 158 156 SUBROUTINE xios(get_file_attr) & 159 157 ( file_id, append, description, enabled, format, min_digits, name, name_suffix, output_freq & 160 158 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 161 159 162 160 IMPLICIT NONE 163 161 TYPE(txios(file)) :: file_hdl … … 179 177 TYPE(txios(duration)) , OPTIONAL, INTENT(OUT) :: sync_freq 180 178 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: type 181 179 182 180 CALL xios(get_file_handle)(file_id,file_hdl) 183 181 CALL xios(get_file_attr_hdl_) & 184 182 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq & 185 183 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 186 184 187 185 END SUBROUTINE xios(get_file_attr) 188 186 189 187 SUBROUTINE xios(get_file_attr_hdl) & 190 188 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq & 191 189 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 192 190 193 191 IMPLICIT NONE 194 192 TYPE(txios(file)) , INTENT(IN) :: file_hdl … … 209 207 TYPE(txios(duration)) , OPTIONAL, INTENT(OUT) :: sync_freq 210 208 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: type 211 209 212 210 CALL xios(get_file_attr_hdl_) & 213 211 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq & 214 212 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 215 213 216 214 END SUBROUTINE xios(get_file_attr_hdl) 217 215 218 216 SUBROUTINE xios(get_file_attr_hdl_) & 219 217 ( file_hdl, append_, description_, enabled_, format_, min_digits_, name_, name_suffix_, output_freq_ & 220 218 , output_level_, par_access_, split_freq_, split_freq_format_, sync_freq_, type_ ) 221 219 222 220 IMPLICIT NONE 223 221 TYPE(txios(file)) , INTENT(IN) :: file_hdl … … 238 236 TYPE(txios(duration)) , OPTIONAL, INTENT(OUT) :: sync_freq_ 239 237 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: type_ 240 238 241 239 IF (PRESENT(append_)) THEN 242 240 CALL cxios_get_file_append(file_hdl%daddr, append__tmp) 243 append_ =append__tmp244 ENDIF 245 241 append_ = append__tmp 242 ENDIF 243 246 244 IF (PRESENT(description_)) THEN 247 245 CALL cxios_get_file_description(file_hdl%daddr, description_, len(description_)) 248 246 ENDIF 249 247 250 248 IF (PRESENT(enabled_)) THEN 251 249 CALL cxios_get_file_enabled(file_hdl%daddr, enabled__tmp) 252 enabled_ =enabled__tmp253 ENDIF 254 250 enabled_ = enabled__tmp 251 ENDIF 252 255 253 IF (PRESENT(format_)) THEN 256 254 CALL cxios_get_file_format(file_hdl%daddr, format_, len(format_)) 257 255 ENDIF 258 256 259 257 IF (PRESENT(min_digits_)) THEN 260 258 CALL cxios_get_file_min_digits(file_hdl%daddr, min_digits_) 261 259 ENDIF 262 260 263 261 IF (PRESENT(name_)) THEN 264 262 CALL cxios_get_file_name(file_hdl%daddr, name_, len(name_)) 265 263 ENDIF 266 264 267 265 IF (PRESENT(name_suffix_)) THEN 268 266 CALL cxios_get_file_name_suffix(file_hdl%daddr, name_suffix_, len(name_suffix_)) 269 267 ENDIF 270 268 271 269 IF (PRESENT(output_freq_)) THEN 272 270 CALL cxios_get_file_output_freq(file_hdl%daddr, output_freq_) 273 271 ENDIF 274 272 275 273 IF (PRESENT(output_level_)) THEN 276 274 CALL cxios_get_file_output_level(file_hdl%daddr, output_level_) 277 275 ENDIF 278 276 279 277 IF (PRESENT(par_access_)) THEN 280 278 CALL cxios_get_file_par_access(file_hdl%daddr, par_access_, len(par_access_)) 281 279 ENDIF 282 280 283 281 IF (PRESENT(split_freq_)) THEN 284 282 CALL cxios_get_file_split_freq(file_hdl%daddr, split_freq_) 285 283 ENDIF 286 284 287 285 IF (PRESENT(split_freq_format_)) THEN 288 286 CALL cxios_get_file_split_freq_format(file_hdl%daddr, split_freq_format_, len(split_freq_format_)) 289 287 ENDIF 290 288 291 289 IF (PRESENT(sync_freq_)) THEN 292 290 CALL cxios_get_file_sync_freq(file_hdl%daddr, sync_freq_) 293 291 ENDIF 294 292 295 293 IF (PRESENT(type_)) THEN 296 294 CALL cxios_get_file_type(file_hdl%daddr, type_, len(type_)) 297 295 ENDIF 298 299 300 296 301 297 END SUBROUTINE xios(get_file_attr_hdl_) 302 298 303 299 SUBROUTINE xios(is_defined_file_attr) & 304 300 ( file_id, append, description, enabled, format, min_digits, name, name_suffix, output_freq & 305 301 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 306 302 307 303 IMPLICIT NONE 308 304 TYPE(txios(file)) :: file_hdl … … 336 332 LOGICAL, OPTIONAL, INTENT(OUT) :: type 337 333 LOGICAL(KIND=C_BOOL) :: type_tmp 338 334 339 335 CALL xios(get_file_handle)(file_id,file_hdl) 340 336 CALL xios(is_defined_file_attr_hdl_) & 341 337 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq & 342 338 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 343 339 344 340 END SUBROUTINE xios(is_defined_file_attr) 345 341 346 342 SUBROUTINE xios(is_defined_file_attr_hdl) & 347 343 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq & 348 344 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 349 345 350 346 IMPLICIT NONE 351 347 TYPE(txios(file)) , INTENT(IN) :: file_hdl … … 378 374 LOGICAL, OPTIONAL, INTENT(OUT) :: type 379 375 LOGICAL(KIND=C_BOOL) :: type_tmp 380 376 381 377 CALL xios(is_defined_file_attr_hdl_) & 382 378 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq & 383 379 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 384 380 385 381 END SUBROUTINE xios(is_defined_file_attr_hdl) 386 382 387 383 SUBROUTINE xios(is_defined_file_attr_hdl_) & 388 384 ( file_hdl, append_, description_, enabled_, format_, min_digits_, name_, name_suffix_, output_freq_ & 389 385 , output_level_, par_access_, split_freq_, split_freq_format_, sync_freq_, type_ ) 390 386 391 387 IMPLICIT NONE 392 388 TYPE(txios(file)) , INTENT(IN) :: file_hdl … … 419 415 LOGICAL, OPTIONAL, INTENT(OUT) :: type_ 420 416 LOGICAL(KIND=C_BOOL) :: type__tmp 421 417 422 418 IF (PRESENT(append_)) THEN 423 append__tmp =cxios_is_defined_file_append(file_hdl%daddr)424 append_ =append__tmp425 ENDIF 426 419 append__tmp = cxios_is_defined_file_append(file_hdl%daddr) 420 append_ = append__tmp 421 ENDIF 422 427 423 IF (PRESENT(description_)) THEN 428 description__tmp =cxios_is_defined_file_description(file_hdl%daddr)429 description_ =description__tmp430 ENDIF 431 424 description__tmp = cxios_is_defined_file_description(file_hdl%daddr) 425 description_ = description__tmp 426 ENDIF 427 432 428 IF (PRESENT(enabled_)) THEN 433 enabled__tmp =cxios_is_defined_file_enabled(file_hdl%daddr)434 enabled_ =enabled__tmp435 ENDIF 436 429 enabled__tmp = cxios_is_defined_file_enabled(file_hdl%daddr) 430 enabled_ = enabled__tmp 431 ENDIF 432 437 433 IF (PRESENT(format_)) THEN 438 format__tmp =cxios_is_defined_file_format(file_hdl%daddr)439 format_ =format__tmp440 ENDIF 441 434 format__tmp = cxios_is_defined_file_format(file_hdl%daddr) 435 format_ = format__tmp 436 ENDIF 437 442 438 IF (PRESENT(min_digits_)) THEN 443 min_digits__tmp =cxios_is_defined_file_min_digits(file_hdl%daddr)444 min_digits_ =min_digits__tmp445 ENDIF 446 439 min_digits__tmp = cxios_is_defined_file_min_digits(file_hdl%daddr) 440 min_digits_ = min_digits__tmp 441 ENDIF 442 447 443 IF (PRESENT(name_)) THEN 448 name__tmp =cxios_is_defined_file_name(file_hdl%daddr)449 name_ =name__tmp450 ENDIF 451 444 name__tmp = cxios_is_defined_file_name(file_hdl%daddr) 445 name_ = name__tmp 446 ENDIF 447 452 448 IF (PRESENT(name_suffix_)) THEN 453 name_suffix__tmp =cxios_is_defined_file_name_suffix(file_hdl%daddr)454 name_suffix_ =name_suffix__tmp455 ENDIF 456 449 name_suffix__tmp = cxios_is_defined_file_name_suffix(file_hdl%daddr) 450 name_suffix_ = name_suffix__tmp 451 ENDIF 452 457 453 IF (PRESENT(output_freq_)) THEN 458 output_freq__tmp =cxios_is_defined_file_output_freq(file_hdl%daddr)459 output_freq_ =output_freq__tmp460 ENDIF 461 454 output_freq__tmp = cxios_is_defined_file_output_freq(file_hdl%daddr) 455 output_freq_ = output_freq__tmp 456 ENDIF 457 462 458 IF (PRESENT(output_level_)) THEN 463 output_level__tmp =cxios_is_defined_file_output_level(file_hdl%daddr)464 output_level_ =output_level__tmp465 ENDIF 466 459 output_level__tmp = cxios_is_defined_file_output_level(file_hdl%daddr) 460 output_level_ = output_level__tmp 461 ENDIF 462 467 463 IF (PRESENT(par_access_)) THEN 468 par_access__tmp =cxios_is_defined_file_par_access(file_hdl%daddr)469 par_access_ =par_access__tmp470 ENDIF 471 464 par_access__tmp = cxios_is_defined_file_par_access(file_hdl%daddr) 465 par_access_ = par_access__tmp 466 ENDIF 467 472 468 IF (PRESENT(split_freq_)) THEN 473 split_freq__tmp =cxios_is_defined_file_split_freq(file_hdl%daddr)474 split_freq_ =split_freq__tmp475 ENDIF 476 469 split_freq__tmp = cxios_is_defined_file_split_freq(file_hdl%daddr) 470 split_freq_ = split_freq__tmp 471 ENDIF 472 477 473 IF (PRESENT(split_freq_format_)) THEN 478 split_freq_format__tmp =cxios_is_defined_file_split_freq_format(file_hdl%daddr)479 split_freq_format_ =split_freq_format__tmp480 ENDIF 481 474 split_freq_format__tmp = cxios_is_defined_file_split_freq_format(file_hdl%daddr) 475 split_freq_format_ = split_freq_format__tmp 476 ENDIF 477 482 478 IF (PRESENT(sync_freq_)) THEN 483 sync_freq__tmp =cxios_is_defined_file_sync_freq(file_hdl%daddr)484 sync_freq_ =sync_freq__tmp485 ENDIF 486 479 sync_freq__tmp = cxios_is_defined_file_sync_freq(file_hdl%daddr) 480 sync_freq_ = sync_freq__tmp 481 ENDIF 482 487 483 IF (PRESENT(type_)) THEN 488 type__tmp=cxios_is_defined_file_type(file_hdl%daddr) 489 type_=type__tmp 490 ENDIF 491 492 493 484 type__tmp = cxios_is_defined_file_type(file_hdl%daddr) 485 type_ = type__tmp 486 ENDIF 487 494 488 END SUBROUTINE xios(is_defined_file_attr_hdl_) 495 489 496 490 END MODULE ifile_attr
Note: See TracChangeset
for help on using the changeset viewer.