Changeset 966 for XIOS/trunk/src/interface/fortran_attr/ifile_attr.F90
- Timestamp:
- 10/10/16 16:01:11 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/fortran_attr/ifile_attr.F90
r932 r966 47 47 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: type 48 48 49 CALL xios(get_file_handle)(file_id,file_hdl) 49 CALL xios(get_file_handle) & 50 (file_id,file_hdl) 50 51 CALL xios(set_file_attr_hdl_) & 51 52 ( file_hdl, append, compression_level, convention, cyclic, description, enabled, format, min_digits & … … 136 137 IF (PRESENT(append_)) THEN 137 138 append__tmp = append_ 138 CALL cxios_set_file_append(file_hdl%daddr, append__tmp) 139 CALL cxios_set_file_append & 140 (file_hdl%daddr, append__tmp) 139 141 ENDIF 140 142 141 143 IF (PRESENT(compression_level_)) THEN 142 CALL cxios_set_file_compression_level(file_hdl%daddr, compression_level_) 144 CALL cxios_set_file_compression_level & 145 (file_hdl%daddr, compression_level_) 143 146 ENDIF 144 147 145 148 IF (PRESENT(convention_)) THEN 146 CALL cxios_set_file_convention(file_hdl%daddr, convention_, len(convention_)) 149 CALL cxios_set_file_convention & 150 (file_hdl%daddr, convention_, len(convention_)) 147 151 ENDIF 148 152 149 153 IF (PRESENT(cyclic_)) THEN 150 154 cyclic__tmp = cyclic_ 151 CALL cxios_set_file_cyclic(file_hdl%daddr, cyclic__tmp) 155 CALL cxios_set_file_cyclic & 156 (file_hdl%daddr, cyclic__tmp) 152 157 ENDIF 153 158 154 159 IF (PRESENT(description_)) THEN 155 CALL cxios_set_file_description(file_hdl%daddr, description_, len(description_)) 160 CALL cxios_set_file_description & 161 (file_hdl%daddr, description_, len(description_)) 156 162 ENDIF 157 163 158 164 IF (PRESENT(enabled_)) THEN 159 165 enabled__tmp = enabled_ 160 CALL cxios_set_file_enabled(file_hdl%daddr, enabled__tmp) 166 CALL cxios_set_file_enabled & 167 (file_hdl%daddr, enabled__tmp) 161 168 ENDIF 162 169 163 170 IF (PRESENT(format_)) THEN 164 CALL cxios_set_file_format(file_hdl%daddr, format_, len(format_)) 171 CALL cxios_set_file_format & 172 (file_hdl%daddr, format_, len(format_)) 165 173 ENDIF 166 174 167 175 IF (PRESENT(min_digits_)) THEN 168 CALL cxios_set_file_min_digits(file_hdl%daddr, min_digits_) 176 CALL cxios_set_file_min_digits & 177 (file_hdl%daddr, min_digits_) 169 178 ENDIF 170 179 171 180 IF (PRESENT(mode_)) THEN 172 CALL cxios_set_file_mode(file_hdl%daddr, mode_, len(mode_)) 181 CALL cxios_set_file_mode & 182 (file_hdl%daddr, mode_, len(mode_)) 173 183 ENDIF 174 184 175 185 IF (PRESENT(name_)) THEN 176 CALL cxios_set_file_name(file_hdl%daddr, name_, len(name_)) 186 CALL cxios_set_file_name & 187 (file_hdl%daddr, name_, len(name_)) 177 188 ENDIF 178 189 179 190 IF (PRESENT(name_suffix_)) THEN 180 CALL cxios_set_file_name_suffix(file_hdl%daddr, name_suffix_, len(name_suffix_)) 191 CALL cxios_set_file_name_suffix & 192 (file_hdl%daddr, name_suffix_, len(name_suffix_)) 181 193 ENDIF 182 194 183 195 IF (PRESENT(output_freq_)) THEN 184 CALL cxios_set_file_output_freq(file_hdl%daddr, output_freq_) 196 CALL cxios_set_file_output_freq & 197 (file_hdl%daddr, output_freq_) 185 198 ENDIF 186 199 187 200 IF (PRESENT(output_level_)) THEN 188 CALL cxios_set_file_output_level(file_hdl%daddr, output_level_) 201 CALL cxios_set_file_output_level & 202 (file_hdl%daddr, output_level_) 189 203 ENDIF 190 204 191 205 IF (PRESENT(par_access_)) THEN 192 CALL cxios_set_file_par_access(file_hdl%daddr, par_access_, len(par_access_)) 206 CALL cxios_set_file_par_access & 207 (file_hdl%daddr, par_access_, len(par_access_)) 193 208 ENDIF 194 209 195 210 IF (PRESENT(record_offset_)) THEN 196 CALL cxios_set_file_record_offset(file_hdl%daddr, record_offset_) 211 CALL cxios_set_file_record_offset & 212 (file_hdl%daddr, record_offset_) 197 213 ENDIF 198 214 199 215 IF (PRESENT(split_freq_)) THEN 200 CALL cxios_set_file_split_freq(file_hdl%daddr, split_freq_) 216 CALL cxios_set_file_split_freq & 217 (file_hdl%daddr, split_freq_) 201 218 ENDIF 202 219 203 220 IF (PRESENT(split_freq_format_)) THEN 204 CALL cxios_set_file_split_freq_format(file_hdl%daddr, split_freq_format_, len(split_freq_format_)) 221 CALL cxios_set_file_split_freq_format & 222 (file_hdl%daddr, split_freq_format_, len(split_freq_format_)) 205 223 ENDIF 206 224 207 225 IF (PRESENT(sync_freq_)) THEN 208 CALL cxios_set_file_sync_freq(file_hdl%daddr, sync_freq_) 226 CALL cxios_set_file_sync_freq & 227 (file_hdl%daddr, sync_freq_) 209 228 ENDIF 210 229 211 230 IF (PRESENT(time_counter_)) THEN 212 CALL cxios_set_file_time_counter(file_hdl%daddr, time_counter_, len(time_counter_)) 231 CALL cxios_set_file_time_counter & 232 (file_hdl%daddr, time_counter_, len(time_counter_)) 213 233 ENDIF 214 234 215 235 IF (PRESENT(time_counter_name_)) THEN 216 CALL cxios_set_file_time_counter_name(file_hdl%daddr, time_counter_name_, len(time_counter_name_)) 236 CALL cxios_set_file_time_counter_name & 237 (file_hdl%daddr, time_counter_name_, len(time_counter_name_)) 217 238 ENDIF 218 239 219 240 IF (PRESENT(timeseries_)) THEN 220 CALL cxios_set_file_timeseries(file_hdl%daddr, timeseries_, len(timeseries_)) 241 CALL cxios_set_file_timeseries & 242 (file_hdl%daddr, timeseries_, len(timeseries_)) 221 243 ENDIF 222 244 223 245 IF (PRESENT(ts_prefix_)) THEN 224 CALL cxios_set_file_ts_prefix(file_hdl%daddr, ts_prefix_, len(ts_prefix_)) 246 CALL cxios_set_file_ts_prefix & 247 (file_hdl%daddr, ts_prefix_, len(ts_prefix_)) 225 248 ENDIF 226 249 227 250 IF (PRESENT(type_)) THEN 228 CALL cxios_set_file_type(file_hdl%daddr, type_, len(type_)) 251 CALL cxios_set_file_type & 252 (file_hdl%daddr, type_, len(type_)) 229 253 ENDIF 230 254 … … 267 291 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: type 268 292 269 CALL xios(get_file_handle)(file_id,file_hdl) 293 CALL xios(get_file_handle) & 294 (file_id,file_hdl) 270 295 CALL xios(get_file_attr_hdl_) & 271 296 ( file_hdl, append, compression_level, convention, cyclic, description, enabled, format, min_digits & … … 355 380 356 381 IF (PRESENT(append_)) THEN 357 CALL cxios_get_file_append(file_hdl%daddr, append__tmp) 382 CALL cxios_get_file_append & 383 (file_hdl%daddr, append__tmp) 358 384 append_ = append__tmp 359 385 ENDIF 360 386 361 387 IF (PRESENT(compression_level_)) THEN 362 CALL cxios_get_file_compression_level(file_hdl%daddr, compression_level_) 388 CALL cxios_get_file_compression_level & 389 (file_hdl%daddr, compression_level_) 363 390 ENDIF 364 391 365 392 IF (PRESENT(convention_)) THEN 366 CALL cxios_get_file_convention(file_hdl%daddr, convention_, len(convention_)) 393 CALL cxios_get_file_convention & 394 (file_hdl%daddr, convention_, len(convention_)) 367 395 ENDIF 368 396 369 397 IF (PRESENT(cyclic_)) THEN 370 CALL cxios_get_file_cyclic(file_hdl%daddr, cyclic__tmp) 398 CALL cxios_get_file_cyclic & 399 (file_hdl%daddr, cyclic__tmp) 371 400 cyclic_ = cyclic__tmp 372 401 ENDIF 373 402 374 403 IF (PRESENT(description_)) THEN 375 CALL cxios_get_file_description(file_hdl%daddr, description_, len(description_)) 404 CALL cxios_get_file_description & 405 (file_hdl%daddr, description_, len(description_)) 376 406 ENDIF 377 407 378 408 IF (PRESENT(enabled_)) THEN 379 CALL cxios_get_file_enabled(file_hdl%daddr, enabled__tmp) 409 CALL cxios_get_file_enabled & 410 (file_hdl%daddr, enabled__tmp) 380 411 enabled_ = enabled__tmp 381 412 ENDIF 382 413 383 414 IF (PRESENT(format_)) THEN 384 CALL cxios_get_file_format(file_hdl%daddr, format_, len(format_)) 415 CALL cxios_get_file_format & 416 (file_hdl%daddr, format_, len(format_)) 385 417 ENDIF 386 418 387 419 IF (PRESENT(min_digits_)) THEN 388 CALL cxios_get_file_min_digits(file_hdl%daddr, min_digits_) 420 CALL cxios_get_file_min_digits & 421 (file_hdl%daddr, min_digits_) 389 422 ENDIF 390 423 391 424 IF (PRESENT(mode_)) THEN 392 CALL cxios_get_file_mode(file_hdl%daddr, mode_, len(mode_)) 425 CALL cxios_get_file_mode & 426 (file_hdl%daddr, mode_, len(mode_)) 393 427 ENDIF 394 428 395 429 IF (PRESENT(name_)) THEN 396 CALL cxios_get_file_name(file_hdl%daddr, name_, len(name_)) 430 CALL cxios_get_file_name & 431 (file_hdl%daddr, name_, len(name_)) 397 432 ENDIF 398 433 399 434 IF (PRESENT(name_suffix_)) THEN 400 CALL cxios_get_file_name_suffix(file_hdl%daddr, name_suffix_, len(name_suffix_)) 435 CALL cxios_get_file_name_suffix & 436 (file_hdl%daddr, name_suffix_, len(name_suffix_)) 401 437 ENDIF 402 438 403 439 IF (PRESENT(output_freq_)) THEN 404 CALL cxios_get_file_output_freq(file_hdl%daddr, output_freq_) 440 CALL cxios_get_file_output_freq & 441 (file_hdl%daddr, output_freq_) 405 442 ENDIF 406 443 407 444 IF (PRESENT(output_level_)) THEN 408 CALL cxios_get_file_output_level(file_hdl%daddr, output_level_) 445 CALL cxios_get_file_output_level & 446 (file_hdl%daddr, output_level_) 409 447 ENDIF 410 448 411 449 IF (PRESENT(par_access_)) THEN 412 CALL cxios_get_file_par_access(file_hdl%daddr, par_access_, len(par_access_)) 450 CALL cxios_get_file_par_access & 451 (file_hdl%daddr, par_access_, len(par_access_)) 413 452 ENDIF 414 453 415 454 IF (PRESENT(record_offset_)) THEN 416 CALL cxios_get_file_record_offset(file_hdl%daddr, record_offset_) 455 CALL cxios_get_file_record_offset & 456 (file_hdl%daddr, record_offset_) 417 457 ENDIF 418 458 419 459 IF (PRESENT(split_freq_)) THEN 420 CALL cxios_get_file_split_freq(file_hdl%daddr, split_freq_) 460 CALL cxios_get_file_split_freq & 461 (file_hdl%daddr, split_freq_) 421 462 ENDIF 422 463 423 464 IF (PRESENT(split_freq_format_)) THEN 424 CALL cxios_get_file_split_freq_format(file_hdl%daddr, split_freq_format_, len(split_freq_format_)) 465 CALL cxios_get_file_split_freq_format & 466 (file_hdl%daddr, split_freq_format_, len(split_freq_format_)) 425 467 ENDIF 426 468 427 469 IF (PRESENT(sync_freq_)) THEN 428 CALL cxios_get_file_sync_freq(file_hdl%daddr, sync_freq_) 470 CALL cxios_get_file_sync_freq & 471 (file_hdl%daddr, sync_freq_) 429 472 ENDIF 430 473 431 474 IF (PRESENT(time_counter_)) THEN 432 CALL cxios_get_file_time_counter(file_hdl%daddr, time_counter_, len(time_counter_)) 475 CALL cxios_get_file_time_counter & 476 (file_hdl%daddr, time_counter_, len(time_counter_)) 433 477 ENDIF 434 478 435 479 IF (PRESENT(time_counter_name_)) THEN 436 CALL cxios_get_file_time_counter_name(file_hdl%daddr, time_counter_name_, len(time_counter_name_)) 480 CALL cxios_get_file_time_counter_name & 481 (file_hdl%daddr, time_counter_name_, len(time_counter_name_)) 437 482 ENDIF 438 483 439 484 IF (PRESENT(timeseries_)) THEN 440 CALL cxios_get_file_timeseries(file_hdl%daddr, timeseries_, len(timeseries_)) 485 CALL cxios_get_file_timeseries & 486 (file_hdl%daddr, timeseries_, len(timeseries_)) 441 487 ENDIF 442 488 443 489 IF (PRESENT(ts_prefix_)) THEN 444 CALL cxios_get_file_ts_prefix(file_hdl%daddr, ts_prefix_, len(ts_prefix_)) 490 CALL cxios_get_file_ts_prefix & 491 (file_hdl%daddr, ts_prefix_, len(ts_prefix_)) 445 492 ENDIF 446 493 447 494 IF (PRESENT(type_)) THEN 448 CALL cxios_get_file_type(file_hdl%daddr, type_, len(type_)) 495 CALL cxios_get_file_type & 496 (file_hdl%daddr, type_, len(type_)) 449 497 ENDIF 450 498 … … 507 555 LOGICAL(KIND=C_BOOL) :: type_tmp 508 556 509 CALL xios(get_file_handle)(file_id,file_hdl) 557 CALL xios(get_file_handle) & 558 (file_id,file_hdl) 510 559 CALL xios(is_defined_file_attr_hdl_) & 511 560 ( file_hdl, append, compression_level, convention, cyclic, description, enabled, format, min_digits & … … 635 684 636 685 IF (PRESENT(append_)) THEN 637 append__tmp = cxios_is_defined_file_append(file_hdl%daddr) 686 append__tmp = cxios_is_defined_file_append & 687 (file_hdl%daddr) 638 688 append_ = append__tmp 639 689 ENDIF 640 690 641 691 IF (PRESENT(compression_level_)) THEN 642 compression_level__tmp = cxios_is_defined_file_compression_level(file_hdl%daddr) 692 compression_level__tmp = cxios_is_defined_file_compression_level & 693 (file_hdl%daddr) 643 694 compression_level_ = compression_level__tmp 644 695 ENDIF 645 696 646 697 IF (PRESENT(convention_)) THEN 647 convention__tmp = cxios_is_defined_file_convention(file_hdl%daddr) 698 convention__tmp = cxios_is_defined_file_convention & 699 (file_hdl%daddr) 648 700 convention_ = convention__tmp 649 701 ENDIF 650 702 651 703 IF (PRESENT(cyclic_)) THEN 652 cyclic__tmp = cxios_is_defined_file_cyclic(file_hdl%daddr) 704 cyclic__tmp = cxios_is_defined_file_cyclic & 705 (file_hdl%daddr) 653 706 cyclic_ = cyclic__tmp 654 707 ENDIF 655 708 656 709 IF (PRESENT(description_)) THEN 657 description__tmp = cxios_is_defined_file_description(file_hdl%daddr) 710 description__tmp = cxios_is_defined_file_description & 711 (file_hdl%daddr) 658 712 description_ = description__tmp 659 713 ENDIF 660 714 661 715 IF (PRESENT(enabled_)) THEN 662 enabled__tmp = cxios_is_defined_file_enabled(file_hdl%daddr) 716 enabled__tmp = cxios_is_defined_file_enabled & 717 (file_hdl%daddr) 663 718 enabled_ = enabled__tmp 664 719 ENDIF 665 720 666 721 IF (PRESENT(format_)) THEN 667 format__tmp = cxios_is_defined_file_format(file_hdl%daddr) 722 format__tmp = cxios_is_defined_file_format & 723 (file_hdl%daddr) 668 724 format_ = format__tmp 669 725 ENDIF 670 726 671 727 IF (PRESENT(min_digits_)) THEN 672 min_digits__tmp = cxios_is_defined_file_min_digits(file_hdl%daddr) 728 min_digits__tmp = cxios_is_defined_file_min_digits & 729 (file_hdl%daddr) 673 730 min_digits_ = min_digits__tmp 674 731 ENDIF 675 732 676 733 IF (PRESENT(mode_)) THEN 677 mode__tmp = cxios_is_defined_file_mode(file_hdl%daddr) 734 mode__tmp = cxios_is_defined_file_mode & 735 (file_hdl%daddr) 678 736 mode_ = mode__tmp 679 737 ENDIF 680 738 681 739 IF (PRESENT(name_)) THEN 682 name__tmp = cxios_is_defined_file_name(file_hdl%daddr) 740 name__tmp = cxios_is_defined_file_name & 741 (file_hdl%daddr) 683 742 name_ = name__tmp 684 743 ENDIF 685 744 686 745 IF (PRESENT(name_suffix_)) THEN 687 name_suffix__tmp = cxios_is_defined_file_name_suffix(file_hdl%daddr) 746 name_suffix__tmp = cxios_is_defined_file_name_suffix & 747 (file_hdl%daddr) 688 748 name_suffix_ = name_suffix__tmp 689 749 ENDIF 690 750 691 751 IF (PRESENT(output_freq_)) THEN 692 output_freq__tmp = cxios_is_defined_file_output_freq(file_hdl%daddr) 752 output_freq__tmp = cxios_is_defined_file_output_freq & 753 (file_hdl%daddr) 693 754 output_freq_ = output_freq__tmp 694 755 ENDIF 695 756 696 757 IF (PRESENT(output_level_)) THEN 697 output_level__tmp = cxios_is_defined_file_output_level(file_hdl%daddr) 758 output_level__tmp = cxios_is_defined_file_output_level & 759 (file_hdl%daddr) 698 760 output_level_ = output_level__tmp 699 761 ENDIF 700 762 701 763 IF (PRESENT(par_access_)) THEN 702 par_access__tmp = cxios_is_defined_file_par_access(file_hdl%daddr) 764 par_access__tmp = cxios_is_defined_file_par_access & 765 (file_hdl%daddr) 703 766 par_access_ = par_access__tmp 704 767 ENDIF 705 768 706 769 IF (PRESENT(record_offset_)) THEN 707 record_offset__tmp = cxios_is_defined_file_record_offset(file_hdl%daddr) 770 record_offset__tmp = cxios_is_defined_file_record_offset & 771 (file_hdl%daddr) 708 772 record_offset_ = record_offset__tmp 709 773 ENDIF 710 774 711 775 IF (PRESENT(split_freq_)) THEN 712 split_freq__tmp = cxios_is_defined_file_split_freq(file_hdl%daddr) 776 split_freq__tmp = cxios_is_defined_file_split_freq & 777 (file_hdl%daddr) 713 778 split_freq_ = split_freq__tmp 714 779 ENDIF 715 780 716 781 IF (PRESENT(split_freq_format_)) THEN 717 split_freq_format__tmp = cxios_is_defined_file_split_freq_format(file_hdl%daddr) 782 split_freq_format__tmp = cxios_is_defined_file_split_freq_format & 783 (file_hdl%daddr) 718 784 split_freq_format_ = split_freq_format__tmp 719 785 ENDIF 720 786 721 787 IF (PRESENT(sync_freq_)) THEN 722 sync_freq__tmp = cxios_is_defined_file_sync_freq(file_hdl%daddr) 788 sync_freq__tmp = cxios_is_defined_file_sync_freq & 789 (file_hdl%daddr) 723 790 sync_freq_ = sync_freq__tmp 724 791 ENDIF 725 792 726 793 IF (PRESENT(time_counter_)) THEN 727 time_counter__tmp = cxios_is_defined_file_time_counter(file_hdl%daddr) 794 time_counter__tmp = cxios_is_defined_file_time_counter & 795 (file_hdl%daddr) 728 796 time_counter_ = time_counter__tmp 729 797 ENDIF 730 798 731 799 IF (PRESENT(time_counter_name_)) THEN 732 time_counter_name__tmp = cxios_is_defined_file_time_counter_name(file_hdl%daddr) 800 time_counter_name__tmp = cxios_is_defined_file_time_counter_name & 801 (file_hdl%daddr) 733 802 time_counter_name_ = time_counter_name__tmp 734 803 ENDIF 735 804 736 805 IF (PRESENT(timeseries_)) THEN 737 timeseries__tmp = cxios_is_defined_file_timeseries(file_hdl%daddr) 806 timeseries__tmp = cxios_is_defined_file_timeseries & 807 (file_hdl%daddr) 738 808 timeseries_ = timeseries__tmp 739 809 ENDIF 740 810 741 811 IF (PRESENT(ts_prefix_)) THEN 742 ts_prefix__tmp = cxios_is_defined_file_ts_prefix(file_hdl%daddr) 812 ts_prefix__tmp = cxios_is_defined_file_ts_prefix & 813 (file_hdl%daddr) 743 814 ts_prefix_ = ts_prefix__tmp 744 815 ENDIF 745 816 746 817 IF (PRESENT(type_)) THEN 747 type__tmp = cxios_is_defined_file_type(file_hdl%daddr) 818 type__tmp = cxios_is_defined_file_type & 819 (file_hdl%daddr) 748 820 type_ = type__tmp 749 821 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.