- Timestamp:
- 07/10/17 18:17:04 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan_merged/src/interface/fortran_attr/ifield_attr.F90
r1005 r1205 12 12 13 13 SUBROUTINE xios(set_field_attr) & 14 ( field_id, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 15 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 16 , grid_ref, indexed_output, level, long_name, name, operation, prec, read_access, scalar_ref & 17 , scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 14 ( field_id, add_offset, axis_ref, cell_methods, cell_methods_mode, check_if_active, compression_level & 15 , default_value, detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op & 16 , grid_path, grid_ref, indexed_output, level, long_name, name, operation, prec, read_access & 17 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 18 ) 18 19 19 20 IMPLICIT NONE … … 24 25 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods 25 26 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods_mode 27 LOGICAL , OPTIONAL, INTENT(IN) :: check_if_active 28 LOGICAL (KIND=C_BOOL) :: check_if_active_tmp 26 29 INTEGER , OPTIONAL, INTENT(IN) :: compression_level 27 30 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: default_value … … 59 62 (field_id,field_hdl) 60 63 CALL xios(set_field_attr_hdl_) & 61 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 62 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 63 , grid_ref, indexed_output, level, long_name, name, operation, prec, read_access, scalar_ref & 64 , scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 64 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, check_if_active, compression_level & 65 , default_value, detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op & 66 , grid_path, grid_ref, indexed_output, level, long_name, name, operation, prec, read_access & 67 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 68 ) 65 69 66 70 END SUBROUTINE xios(set_field_attr) 67 71 68 72 SUBROUTINE xios(set_field_attr_hdl) & 69 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 70 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 71 , grid_ref, indexed_output, level, long_name, name, operation, prec, read_access, scalar_ref & 72 , scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 73 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, check_if_active, compression_level & 74 , default_value, detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op & 75 , grid_path, grid_ref, indexed_output, level, long_name, name, operation, prec, read_access & 76 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 77 ) 73 78 74 79 IMPLICIT NONE … … 78 83 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods 79 84 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods_mode 85 LOGICAL , OPTIONAL, INTENT(IN) :: check_if_active 86 LOGICAL (KIND=C_BOOL) :: check_if_active_tmp 80 87 INTEGER , OPTIONAL, INTENT(IN) :: compression_level 81 88 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: default_value … … 111 118 112 119 CALL xios(set_field_attr_hdl_) & 113 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 114 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 115 , grid_ref, indexed_output, level, long_name, name, operation, prec, read_access, scalar_ref & 116 , scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 120 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, check_if_active, compression_level & 121 , default_value, detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op & 122 , grid_path, grid_ref, indexed_output, level, long_name, name, operation, prec, read_access & 123 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 124 ) 117 125 118 126 END SUBROUTINE xios(set_field_attr_hdl) 119 127 120 128 SUBROUTINE xios(set_field_attr_hdl_) & 121 ( field_hdl, add_offset_, axis_ref_, cell_methods_, cell_methods_mode_, c ompression_level_, default_value_ &122 , de tect_missing_value_, domain_ref_, enabled_, expr_, field_ref_, freq_offset_, freq_op_, grid_path_ &123 , grid_ref_, indexed_output_, level_, long_name_, name_, operation_, prec_, read_access_, scalar_ref_ &124 , scale_factor_, standard_name_, ts_enabled_, ts_split_freq_, unit_, valid_max_, valid_min_ &125 )129 ( field_hdl, add_offset_, axis_ref_, cell_methods_, cell_methods_mode_, check_if_active_, compression_level_ & 130 , default_value_, detect_missing_value_, domain_ref_, enabled_, expr_, field_ref_, freq_offset_ & 131 , freq_op_, grid_path_, grid_ref_, indexed_output_, level_, long_name_, name_, operation_, prec_ & 132 , read_access_, scalar_ref_, scale_factor_, standard_name_, ts_enabled_, ts_split_freq_, unit_ & 133 , valid_max_, valid_min_ ) 126 134 127 135 IMPLICIT NONE … … 131 139 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods_ 132 140 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods_mode_ 141 LOGICAL , OPTIONAL, INTENT(IN) :: check_if_active_ 142 LOGICAL (KIND=C_BOOL) :: check_if_active__tmp 133 143 INTEGER , OPTIONAL, INTENT(IN) :: compression_level_ 134 144 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: default_value_ … … 183 193 ENDIF 184 194 195 IF (PRESENT(check_if_active_)) THEN 196 check_if_active__tmp = check_if_active_ 197 CALL cxios_set_field_check_if_active & 198 (field_hdl%daddr, check_if_active__tmp) 199 ENDIF 200 185 201 IF (PRESENT(compression_level_)) THEN 186 202 CALL cxios_set_field_compression_level & … … 321 337 322 338 SUBROUTINE xios(get_field_attr) & 323 ( field_id, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 324 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 325 , grid_ref, indexed_output, level, long_name, name, operation, prec, read_access, scalar_ref & 326 , scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 339 ( field_id, add_offset, axis_ref, cell_methods, cell_methods_mode, check_if_active, compression_level & 340 , default_value, detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op & 341 , grid_path, grid_ref, indexed_output, level, long_name, name, operation, prec, read_access & 342 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 343 ) 327 344 328 345 IMPLICIT NONE … … 333 350 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods 334 351 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods_mode 352 LOGICAL , OPTIONAL, INTENT(OUT) :: check_if_active 353 LOGICAL (KIND=C_BOOL) :: check_if_active_tmp 335 354 INTEGER , OPTIONAL, INTENT(OUT) :: compression_level 336 355 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: default_value … … 368 387 (field_id,field_hdl) 369 388 CALL xios(get_field_attr_hdl_) & 370 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 371 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 372 , grid_ref, indexed_output, level, long_name, name, operation, prec, read_access, scalar_ref & 373 , scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 389 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, check_if_active, compression_level & 390 , default_value, detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op & 391 , grid_path, grid_ref, indexed_output, level, long_name, name, operation, prec, read_access & 392 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 393 ) 374 394 375 395 END SUBROUTINE xios(get_field_attr) 376 396 377 397 SUBROUTINE xios(get_field_attr_hdl) & 378 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 379 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 380 , grid_ref, indexed_output, level, long_name, name, operation, prec, read_access, scalar_ref & 381 , scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 398 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, check_if_active, compression_level & 399 , default_value, detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op & 400 , grid_path, grid_ref, indexed_output, level, long_name, name, operation, prec, read_access & 401 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 402 ) 382 403 383 404 IMPLICIT NONE … … 387 408 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods 388 409 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods_mode 410 LOGICAL , OPTIONAL, INTENT(OUT) :: check_if_active 411 LOGICAL (KIND=C_BOOL) :: check_if_active_tmp 389 412 INTEGER , OPTIONAL, INTENT(OUT) :: compression_level 390 413 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: default_value … … 420 443 421 444 CALL xios(get_field_attr_hdl_) & 422 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 423 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 424 , grid_ref, indexed_output, level, long_name, name, operation, prec, read_access, scalar_ref & 425 , scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 445 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, check_if_active, compression_level & 446 , default_value, detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op & 447 , grid_path, grid_ref, indexed_output, level, long_name, name, operation, prec, read_access & 448 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 449 ) 426 450 427 451 END SUBROUTINE xios(get_field_attr_hdl) 428 452 429 453 SUBROUTINE xios(get_field_attr_hdl_) & 430 ( field_hdl, add_offset_, axis_ref_, cell_methods_, cell_methods_mode_, c ompression_level_, default_value_ &431 , de tect_missing_value_, domain_ref_, enabled_, expr_, field_ref_, freq_offset_, freq_op_, grid_path_ &432 , grid_ref_, indexed_output_, level_, long_name_, name_, operation_, prec_, read_access_, scalar_ref_ &433 , scale_factor_, standard_name_, ts_enabled_, ts_split_freq_, unit_, valid_max_, valid_min_ &434 )454 ( field_hdl, add_offset_, axis_ref_, cell_methods_, cell_methods_mode_, check_if_active_, compression_level_ & 455 , default_value_, detect_missing_value_, domain_ref_, enabled_, expr_, field_ref_, freq_offset_ & 456 , freq_op_, grid_path_, grid_ref_, indexed_output_, level_, long_name_, name_, operation_, prec_ & 457 , read_access_, scalar_ref_, scale_factor_, standard_name_, ts_enabled_, ts_split_freq_, unit_ & 458 , valid_max_, valid_min_ ) 435 459 436 460 IMPLICIT NONE … … 440 464 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods_ 441 465 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods_mode_ 466 LOGICAL , OPTIONAL, INTENT(OUT) :: check_if_active_ 467 LOGICAL (KIND=C_BOOL) :: check_if_active__tmp 442 468 INTEGER , OPTIONAL, INTENT(OUT) :: compression_level_ 443 469 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: default_value_ … … 492 518 ENDIF 493 519 520 IF (PRESENT(check_if_active_)) THEN 521 CALL cxios_get_field_check_if_active & 522 (field_hdl%daddr, check_if_active__tmp) 523 check_if_active_ = check_if_active__tmp 524 ENDIF 525 494 526 IF (PRESENT(compression_level_)) THEN 495 527 CALL cxios_get_field_compression_level & … … 630 662 631 663 SUBROUTINE xios(is_defined_field_attr) & 632 ( field_id, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 633 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 634 , grid_ref, indexed_output, level, long_name, name, operation, prec, read_access, scalar_ref & 635 , scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 664 ( field_id, add_offset, axis_ref, cell_methods, cell_methods_mode, check_if_active, compression_level & 665 , default_value, detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op & 666 , grid_path, grid_ref, indexed_output, level, long_name, name, operation, prec, read_access & 667 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 668 ) 636 669 637 670 IMPLICIT NONE … … 646 679 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods_mode 647 680 LOGICAL(KIND=C_BOOL) :: cell_methods_mode_tmp 681 LOGICAL, OPTIONAL, INTENT(OUT) :: check_if_active 682 LOGICAL(KIND=C_BOOL) :: check_if_active_tmp 648 683 LOGICAL, OPTIONAL, INTENT(OUT) :: compression_level 649 684 LOGICAL(KIND=C_BOOL) :: compression_level_tmp … … 702 737 (field_id,field_hdl) 703 738 CALL xios(is_defined_field_attr_hdl_) & 704 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 705 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 706 , grid_ref, indexed_output, level, long_name, name, operation, prec, read_access, scalar_ref & 707 , scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 739 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, check_if_active, compression_level & 740 , default_value, detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op & 741 , grid_path, grid_ref, indexed_output, level, long_name, name, operation, prec, read_access & 742 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 743 ) 708 744 709 745 END SUBROUTINE xios(is_defined_field_attr) 710 746 711 747 SUBROUTINE xios(is_defined_field_attr_hdl) & 712 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 713 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 714 , grid_ref, indexed_output, level, long_name, name, operation, prec, read_access, scalar_ref & 715 , scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 748 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, check_if_active, compression_level & 749 , default_value, detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op & 750 , grid_path, grid_ref, indexed_output, level, long_name, name, operation, prec, read_access & 751 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 752 ) 716 753 717 754 IMPLICIT NONE … … 725 762 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods_mode 726 763 LOGICAL(KIND=C_BOOL) :: cell_methods_mode_tmp 764 LOGICAL, OPTIONAL, INTENT(OUT) :: check_if_active 765 LOGICAL(KIND=C_BOOL) :: check_if_active_tmp 727 766 LOGICAL, OPTIONAL, INTENT(OUT) :: compression_level 728 767 LOGICAL(KIND=C_BOOL) :: compression_level_tmp … … 779 818 780 819 CALL xios(is_defined_field_attr_hdl_) & 781 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 782 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 783 , grid_ref, indexed_output, level, long_name, name, operation, prec, read_access, scalar_ref & 784 , scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 820 ( field_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, check_if_active, compression_level & 821 , default_value, detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op & 822 , grid_path, grid_ref, indexed_output, level, long_name, name, operation, prec, read_access & 823 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 824 ) 785 825 786 826 END SUBROUTINE xios(is_defined_field_attr_hdl) 787 827 788 828 SUBROUTINE xios(is_defined_field_attr_hdl_) & 789 ( field_hdl, add_offset_, axis_ref_, cell_methods_, cell_methods_mode_, c ompression_level_, default_value_ &790 , de tect_missing_value_, domain_ref_, enabled_, expr_, field_ref_, freq_offset_, freq_op_, grid_path_ &791 , grid_ref_, indexed_output_, level_, long_name_, name_, operation_, prec_, read_access_, scalar_ref_ &792 , scale_factor_, standard_name_, ts_enabled_, ts_split_freq_, unit_, valid_max_, valid_min_ &793 )829 ( field_hdl, add_offset_, axis_ref_, cell_methods_, cell_methods_mode_, check_if_active_, compression_level_ & 830 , default_value_, detect_missing_value_, domain_ref_, enabled_, expr_, field_ref_, freq_offset_ & 831 , freq_op_, grid_path_, grid_ref_, indexed_output_, level_, long_name_, name_, operation_, prec_ & 832 , read_access_, scalar_ref_, scale_factor_, standard_name_, ts_enabled_, ts_split_freq_, unit_ & 833 , valid_max_, valid_min_ ) 794 834 795 835 IMPLICIT NONE … … 803 843 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods_mode_ 804 844 LOGICAL(KIND=C_BOOL) :: cell_methods_mode__tmp 845 LOGICAL, OPTIONAL, INTENT(OUT) :: check_if_active_ 846 LOGICAL(KIND=C_BOOL) :: check_if_active__tmp 805 847 LOGICAL, OPTIONAL, INTENT(OUT) :: compression_level_ 806 848 LOGICAL(KIND=C_BOOL) :: compression_level__tmp … … 880 922 ENDIF 881 923 924 IF (PRESENT(check_if_active_)) THEN 925 check_if_active__tmp = cxios_is_defined_field_check_if_active & 926 (field_hdl%daddr) 927 check_if_active_ = check_if_active__tmp 928 ENDIF 929 882 930 IF (PRESENT(compression_level_)) THEN 883 931 compression_level__tmp = cxios_is_defined_field_compression_level &
Note: See TracChangeset
for help on using the changeset viewer.