Changeset 1021 for XIOS/dev/dev_olga/src/interface/fortran_attr
- Timestamp:
- 01/10/17 14:36:29 (8 years ago)
- Location:
- XIOS/dev/dev_olga/src/interface/fortran_attr
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/interface/fortran_attr/field_interface_attr.F90
r891 r1021 50 50 51 51 52 SUBROUTINE cxios_set_field_cell_methods(field_hdl, cell_methods, cell_methods_size) BIND(C) 53 USE ISO_C_BINDING 54 INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 55 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: cell_methods 56 INTEGER (kind = C_INT) , VALUE :: cell_methods_size 57 END SUBROUTINE cxios_set_field_cell_methods 58 59 SUBROUTINE cxios_get_field_cell_methods(field_hdl, cell_methods, cell_methods_size) BIND(C) 60 USE ISO_C_BINDING 61 INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 62 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: cell_methods 63 INTEGER (kind = C_INT) , VALUE :: cell_methods_size 64 END SUBROUTINE cxios_get_field_cell_methods 65 66 FUNCTION cxios_is_defined_field_cell_methods(field_hdl) BIND(C) 67 USE ISO_C_BINDING 68 LOGICAL(kind=C_BOOL) :: cxios_is_defined_field_cell_methods 69 INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 70 END FUNCTION cxios_is_defined_field_cell_methods 71 72 73 SUBROUTINE cxios_set_field_cell_methods_mode(field_hdl, cell_methods_mode, cell_methods_mode_size) BIND(C) 74 USE ISO_C_BINDING 75 INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 76 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: cell_methods_mode 77 INTEGER (kind = C_INT) , VALUE :: cell_methods_mode_size 78 END SUBROUTINE cxios_set_field_cell_methods_mode 79 80 SUBROUTINE cxios_get_field_cell_methods_mode(field_hdl, cell_methods_mode, cell_methods_mode_size) BIND(C) 81 USE ISO_C_BINDING 82 INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 83 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: cell_methods_mode 84 INTEGER (kind = C_INT) , VALUE :: cell_methods_mode_size 85 END SUBROUTINE cxios_get_field_cell_methods_mode 86 87 FUNCTION cxios_is_defined_field_cell_methods_mode(field_hdl) BIND(C) 88 USE ISO_C_BINDING 89 LOGICAL(kind=C_BOOL) :: cxios_is_defined_field_cell_methods_mode 90 INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 91 END FUNCTION cxios_is_defined_field_cell_methods_mode 92 93 52 94 SUBROUTINE cxios_set_field_compression_level(field_hdl, compression_level) BIND(C) 53 95 USE ISO_C_BINDING … … 147 189 148 190 191 SUBROUTINE cxios_set_field_expr(field_hdl, expr, expr_size) BIND(C) 192 USE ISO_C_BINDING 193 INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 194 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: expr 195 INTEGER (kind = C_INT) , VALUE :: expr_size 196 END SUBROUTINE cxios_set_field_expr 197 198 SUBROUTINE cxios_get_field_expr(field_hdl, expr, expr_size) BIND(C) 199 USE ISO_C_BINDING 200 INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 201 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: expr 202 INTEGER (kind = C_INT) , VALUE :: expr_size 203 END SUBROUTINE cxios_get_field_expr 204 205 FUNCTION cxios_is_defined_field_expr(field_hdl) BIND(C) 206 USE ISO_C_BINDING 207 LOGICAL(kind=C_BOOL) :: cxios_is_defined_field_expr 208 INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 209 END FUNCTION cxios_is_defined_field_expr 210 211 149 212 SUBROUTINE cxios_set_field_field_ref(field_hdl, field_ref, field_ref_size) BIND(C) 150 213 USE ISO_C_BINDING -
XIOS/dev/dev_olga/src/interface/fortran_attr/fieldgroup_interface_attr.F90
r891 r1021 50 50 51 51 52 SUBROUTINE cxios_set_fieldgroup_cell_methods(fieldgroup_hdl, cell_methods, cell_methods_size) BIND(C) 53 USE ISO_C_BINDING 54 INTEGER (kind = C_INTPTR_T), VALUE :: fieldgroup_hdl 55 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: cell_methods 56 INTEGER (kind = C_INT) , VALUE :: cell_methods_size 57 END SUBROUTINE cxios_set_fieldgroup_cell_methods 58 59 SUBROUTINE cxios_get_fieldgroup_cell_methods(fieldgroup_hdl, cell_methods, cell_methods_size) BIND(C) 60 USE ISO_C_BINDING 61 INTEGER (kind = C_INTPTR_T), VALUE :: fieldgroup_hdl 62 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: cell_methods 63 INTEGER (kind = C_INT) , VALUE :: cell_methods_size 64 END SUBROUTINE cxios_get_fieldgroup_cell_methods 65 66 FUNCTION cxios_is_defined_fieldgroup_cell_methods(fieldgroup_hdl) BIND(C) 67 USE ISO_C_BINDING 68 LOGICAL(kind=C_BOOL) :: cxios_is_defined_fieldgroup_cell_methods 69 INTEGER (kind = C_INTPTR_T), VALUE :: fieldgroup_hdl 70 END FUNCTION cxios_is_defined_fieldgroup_cell_methods 71 72 73 SUBROUTINE cxios_set_fieldgroup_cell_methods_mode(fieldgroup_hdl, cell_methods_mode, cell_methods_mode_size) BIND(C) 74 USE ISO_C_BINDING 75 INTEGER (kind = C_INTPTR_T), VALUE :: fieldgroup_hdl 76 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: cell_methods_mode 77 INTEGER (kind = C_INT) , VALUE :: cell_methods_mode_size 78 END SUBROUTINE cxios_set_fieldgroup_cell_methods_mode 79 80 SUBROUTINE cxios_get_fieldgroup_cell_methods_mode(fieldgroup_hdl, cell_methods_mode, cell_methods_mode_size) BIND(C) 81 USE ISO_C_BINDING 82 INTEGER (kind = C_INTPTR_T), VALUE :: fieldgroup_hdl 83 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: cell_methods_mode 84 INTEGER (kind = C_INT) , VALUE :: cell_methods_mode_size 85 END SUBROUTINE cxios_get_fieldgroup_cell_methods_mode 86 87 FUNCTION cxios_is_defined_fieldgroup_cell_methods_mode(fieldgroup_hdl) BIND(C) 88 USE ISO_C_BINDING 89 LOGICAL(kind=C_BOOL) :: cxios_is_defined_fieldgroup_cell_methods_mode 90 INTEGER (kind = C_INTPTR_T), VALUE :: fieldgroup_hdl 91 END FUNCTION cxios_is_defined_fieldgroup_cell_methods_mode 92 93 52 94 SUBROUTINE cxios_set_fieldgroup_compression_level(fieldgroup_hdl, compression_level) BIND(C) 53 95 USE ISO_C_BINDING … … 147 189 148 190 191 SUBROUTINE cxios_set_fieldgroup_expr(fieldgroup_hdl, expr, expr_size) BIND(C) 192 USE ISO_C_BINDING 193 INTEGER (kind = C_INTPTR_T), VALUE :: fieldgroup_hdl 194 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: expr 195 INTEGER (kind = C_INT) , VALUE :: expr_size 196 END SUBROUTINE cxios_set_fieldgroup_expr 197 198 SUBROUTINE cxios_get_fieldgroup_expr(fieldgroup_hdl, expr, expr_size) BIND(C) 199 USE ISO_C_BINDING 200 INTEGER (kind = C_INTPTR_T), VALUE :: fieldgroup_hdl 201 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: expr 202 INTEGER (kind = C_INT) , VALUE :: expr_size 203 END SUBROUTINE cxios_get_fieldgroup_expr 204 205 FUNCTION cxios_is_defined_fieldgroup_expr(fieldgroup_hdl) BIND(C) 206 USE ISO_C_BINDING 207 LOGICAL(kind=C_BOOL) :: cxios_is_defined_fieldgroup_expr 208 INTEGER (kind = C_INTPTR_T), VALUE :: fieldgroup_hdl 209 END FUNCTION cxios_is_defined_fieldgroup_expr 210 211 149 212 SUBROUTINE cxios_set_fieldgroup_field_ref(fieldgroup_hdl, field_ref, field_ref_size) BIND(C) 150 213 USE ISO_C_BINDING -
XIOS/dev/dev_olga/src/interface/fortran_attr/ifield_attr.F90
r966 r1021 12 12 13 13 SUBROUTINE xios(set_field_attr) & 14 ( field_id, add_offset, axis_ref, c ompression_level, default_value, detect_missing_value, domain_ref&15 , enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, indexed_output, level, long_name&16 , name, operation, prec, read_access, scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq&17 , unit, valid_max, valid_min )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 ) 18 18 19 19 IMPLICIT NONE … … 22 22 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: add_offset 23 23 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: axis_ref 24 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods 25 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods_mode 24 26 INTEGER , OPTIONAL, INTENT(IN) :: compression_level 25 27 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: default_value … … 29 31 LOGICAL , OPTIONAL, INTENT(IN) :: enabled 30 32 LOGICAL (KIND=C_BOOL) :: enabled_tmp 33 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: expr 31 34 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: field_ref 32 35 TYPE(txios(duration)) , OPTIONAL, INTENT(IN) :: freq_offset … … 56 59 (field_id,field_hdl) 57 60 CALL xios(set_field_attr_hdl_) & 58 ( field_hdl, add_offset, axis_ref, c ompression_level, default_value, detect_missing_value, domain_ref&59 , enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, indexed_output, level, long_name&60 , name, operation, prec, read_access, scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq&61 , unit, valid_max, valid_min )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 ) 62 65 63 66 END SUBROUTINE xios(set_field_attr) 64 67 65 68 SUBROUTINE xios(set_field_attr_hdl) & 66 ( field_hdl, add_offset, axis_ref, c ompression_level, default_value, detect_missing_value, domain_ref&67 , enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, indexed_output, level, long_name&68 , name, operation, prec, read_access, scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq&69 , unit, valid_max, valid_min )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 ) 70 73 71 74 IMPLICIT NONE … … 73 76 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: add_offset 74 77 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: axis_ref 78 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods 79 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods_mode 75 80 INTEGER , OPTIONAL, INTENT(IN) :: compression_level 76 81 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: default_value … … 80 85 LOGICAL , OPTIONAL, INTENT(IN) :: enabled 81 86 LOGICAL (KIND=C_BOOL) :: enabled_tmp 87 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: expr 82 88 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: field_ref 83 89 TYPE(txios(duration)) , OPTIONAL, INTENT(IN) :: freq_offset … … 105 111 106 112 CALL xios(set_field_attr_hdl_) & 107 ( field_hdl, add_offset, axis_ref, c ompression_level, default_value, detect_missing_value, domain_ref&108 , enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, indexed_output, level, long_name&109 , name, operation, prec, read_access, scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq&110 , unit, valid_max, valid_min )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 ) 111 117 112 118 END SUBROUTINE xios(set_field_attr_hdl) 113 119 114 120 SUBROUTINE xios(set_field_attr_hdl_) & 115 ( field_hdl, add_offset_, axis_ref_, compression_level_, default_value_, detect_missing_value_ & 116 , domain_ref_, enabled_, field_ref_, freq_offset_, freq_op_, grid_path_, grid_ref_, indexed_output_ & 117 , level_, long_name_, name_, operation_, prec_, read_access_, scalar_ref_, scale_factor_, standard_name_ & 118 , ts_enabled_, ts_split_freq_, unit_, valid_max_, valid_min_ ) 121 ( field_hdl, add_offset_, axis_ref_, cell_methods_, cell_methods_mode_, compression_level_, default_value_ & 122 , detect_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 ) 119 126 120 127 IMPLICIT NONE … … 122 129 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: add_offset_ 123 130 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: axis_ref_ 131 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods_ 132 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods_mode_ 124 133 INTEGER , OPTIONAL, INTENT(IN) :: compression_level_ 125 134 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: default_value_ … … 129 138 LOGICAL , OPTIONAL, INTENT(IN) :: enabled_ 130 139 LOGICAL (KIND=C_BOOL) :: enabled__tmp 140 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: expr_ 131 141 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: field_ref_ 132 142 TYPE(txios(duration)) , OPTIONAL, INTENT(IN) :: freq_offset_ … … 163 173 ENDIF 164 174 175 IF (PRESENT(cell_methods_)) THEN 176 CALL cxios_set_field_cell_methods & 177 (field_hdl%daddr, cell_methods_, len(cell_methods_)) 178 ENDIF 179 180 IF (PRESENT(cell_methods_mode_)) THEN 181 CALL cxios_set_field_cell_methods_mode & 182 (field_hdl%daddr, cell_methods_mode_, len(cell_methods_mode_)) 183 ENDIF 184 165 185 IF (PRESENT(compression_level_)) THEN 166 186 CALL cxios_set_field_compression_level & … … 190 210 ENDIF 191 211 212 IF (PRESENT(expr_)) THEN 213 CALL cxios_set_field_expr & 214 (field_hdl%daddr, expr_, len(expr_)) 215 ENDIF 216 192 217 IF (PRESENT(field_ref_)) THEN 193 218 CALL cxios_set_field_field_ref & … … 296 321 297 322 SUBROUTINE xios(get_field_attr) & 298 ( field_id, add_offset, axis_ref, c ompression_level, default_value, detect_missing_value, domain_ref&299 , enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, indexed_output, level, long_name&300 , name, operation, prec, read_access, scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq&301 , unit, valid_max, valid_min )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 ) 302 327 303 328 IMPLICIT NONE … … 306 331 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: add_offset 307 332 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: axis_ref 333 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods 334 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods_mode 308 335 INTEGER , OPTIONAL, INTENT(OUT) :: compression_level 309 336 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: default_value … … 313 340 LOGICAL , OPTIONAL, INTENT(OUT) :: enabled 314 341 LOGICAL (KIND=C_BOOL) :: enabled_tmp 342 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: expr 315 343 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: field_ref 316 344 TYPE(txios(duration)) , OPTIONAL, INTENT(OUT) :: freq_offset … … 340 368 (field_id,field_hdl) 341 369 CALL xios(get_field_attr_hdl_) & 342 ( field_hdl, add_offset, axis_ref, c ompression_level, default_value, detect_missing_value, domain_ref&343 , enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, indexed_output, level, long_name&344 , name, operation, prec, read_access, scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq&345 , unit, valid_max, valid_min )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 ) 346 374 347 375 END SUBROUTINE xios(get_field_attr) 348 376 349 377 SUBROUTINE xios(get_field_attr_hdl) & 350 ( field_hdl, add_offset, axis_ref, c ompression_level, default_value, detect_missing_value, domain_ref&351 , enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, indexed_output, level, long_name&352 , name, operation, prec, read_access, scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq&353 , unit, valid_max, valid_min )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 ) 354 382 355 383 IMPLICIT NONE … … 357 385 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: add_offset 358 386 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: axis_ref 387 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods 388 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods_mode 359 389 INTEGER , OPTIONAL, INTENT(OUT) :: compression_level 360 390 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: default_value … … 364 394 LOGICAL , OPTIONAL, INTENT(OUT) :: enabled 365 395 LOGICAL (KIND=C_BOOL) :: enabled_tmp 396 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: expr 366 397 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: field_ref 367 398 TYPE(txios(duration)) , OPTIONAL, INTENT(OUT) :: freq_offset … … 389 420 390 421 CALL xios(get_field_attr_hdl_) & 391 ( field_hdl, add_offset, axis_ref, c ompression_level, default_value, detect_missing_value, domain_ref&392 , enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, indexed_output, level, long_name&393 , name, operation, prec, read_access, scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq&394 , unit, valid_max, valid_min )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 ) 395 426 396 427 END SUBROUTINE xios(get_field_attr_hdl) 397 428 398 429 SUBROUTINE xios(get_field_attr_hdl_) & 399 ( field_hdl, add_offset_, axis_ref_, compression_level_, default_value_, detect_missing_value_ & 400 , domain_ref_, enabled_, field_ref_, freq_offset_, freq_op_, grid_path_, grid_ref_, indexed_output_ & 401 , level_, long_name_, name_, operation_, prec_, read_access_, scalar_ref_, scale_factor_, standard_name_ & 402 , ts_enabled_, ts_split_freq_, unit_, valid_max_, valid_min_ ) 430 ( field_hdl, add_offset_, axis_ref_, cell_methods_, cell_methods_mode_, compression_level_, default_value_ & 431 , detect_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 ) 403 435 404 436 IMPLICIT NONE … … 406 438 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: add_offset_ 407 439 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: axis_ref_ 440 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods_ 441 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods_mode_ 408 442 INTEGER , OPTIONAL, INTENT(OUT) :: compression_level_ 409 443 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: default_value_ … … 413 447 LOGICAL , OPTIONAL, INTENT(OUT) :: enabled_ 414 448 LOGICAL (KIND=C_BOOL) :: enabled__tmp 449 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: expr_ 415 450 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: field_ref_ 416 451 TYPE(txios(duration)) , OPTIONAL, INTENT(OUT) :: freq_offset_ … … 447 482 ENDIF 448 483 484 IF (PRESENT(cell_methods_)) THEN 485 CALL cxios_get_field_cell_methods & 486 (field_hdl%daddr, cell_methods_, len(cell_methods_)) 487 ENDIF 488 489 IF (PRESENT(cell_methods_mode_)) THEN 490 CALL cxios_get_field_cell_methods_mode & 491 (field_hdl%daddr, cell_methods_mode_, len(cell_methods_mode_)) 492 ENDIF 493 449 494 IF (PRESENT(compression_level_)) THEN 450 495 CALL cxios_get_field_compression_level & … … 474 519 ENDIF 475 520 521 IF (PRESENT(expr_)) THEN 522 CALL cxios_get_field_expr & 523 (field_hdl%daddr, expr_, len(expr_)) 524 ENDIF 525 476 526 IF (PRESENT(field_ref_)) THEN 477 527 CALL cxios_get_field_field_ref & … … 580 630 581 631 SUBROUTINE xios(is_defined_field_attr) & 582 ( field_id, add_offset, axis_ref, c ompression_level, default_value, detect_missing_value, domain_ref&583 , enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, indexed_output, level, long_name&584 , name, operation, prec, read_access, scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq&585 , unit, valid_max, valid_min )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 ) 586 636 587 637 IMPLICIT NONE … … 592 642 LOGICAL, OPTIONAL, INTENT(OUT) :: axis_ref 593 643 LOGICAL(KIND=C_BOOL) :: axis_ref_tmp 644 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods 645 LOGICAL(KIND=C_BOOL) :: cell_methods_tmp 646 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods_mode 647 LOGICAL(KIND=C_BOOL) :: cell_methods_mode_tmp 594 648 LOGICAL, OPTIONAL, INTENT(OUT) :: compression_level 595 649 LOGICAL(KIND=C_BOOL) :: compression_level_tmp … … 602 656 LOGICAL, OPTIONAL, INTENT(OUT) :: enabled 603 657 LOGICAL(KIND=C_BOOL) :: enabled_tmp 658 LOGICAL, OPTIONAL, INTENT(OUT) :: expr 659 LOGICAL(KIND=C_BOOL) :: expr_tmp 604 660 LOGICAL, OPTIONAL, INTENT(OUT) :: field_ref 605 661 LOGICAL(KIND=C_BOOL) :: field_ref_tmp … … 646 702 (field_id,field_hdl) 647 703 CALL xios(is_defined_field_attr_hdl_) & 648 ( field_hdl, add_offset, axis_ref, c ompression_level, default_value, detect_missing_value, domain_ref&649 , enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, indexed_output, level, long_name&650 , name, operation, prec, read_access, scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq&651 , unit, valid_max, valid_min )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 ) 652 708 653 709 END SUBROUTINE xios(is_defined_field_attr) 654 710 655 711 SUBROUTINE xios(is_defined_field_attr_hdl) & 656 ( field_hdl, add_offset, axis_ref, c ompression_level, default_value, detect_missing_value, domain_ref&657 , enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, indexed_output, level, long_name&658 , name, operation, prec, read_access, scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq&659 , unit, valid_max, valid_min )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 ) 660 716 661 717 IMPLICIT NONE … … 665 721 LOGICAL, OPTIONAL, INTENT(OUT) :: axis_ref 666 722 LOGICAL(KIND=C_BOOL) :: axis_ref_tmp 723 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods 724 LOGICAL(KIND=C_BOOL) :: cell_methods_tmp 725 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods_mode 726 LOGICAL(KIND=C_BOOL) :: cell_methods_mode_tmp 667 727 LOGICAL, OPTIONAL, INTENT(OUT) :: compression_level 668 728 LOGICAL(KIND=C_BOOL) :: compression_level_tmp … … 675 735 LOGICAL, OPTIONAL, INTENT(OUT) :: enabled 676 736 LOGICAL(KIND=C_BOOL) :: enabled_tmp 737 LOGICAL, OPTIONAL, INTENT(OUT) :: expr 738 LOGICAL(KIND=C_BOOL) :: expr_tmp 677 739 LOGICAL, OPTIONAL, INTENT(OUT) :: field_ref 678 740 LOGICAL(KIND=C_BOOL) :: field_ref_tmp … … 717 779 718 780 CALL xios(is_defined_field_attr_hdl_) & 719 ( field_hdl, add_offset, axis_ref, c ompression_level, default_value, detect_missing_value, domain_ref&720 , enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, indexed_output, level, long_name&721 , name, operation, prec, read_access, scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq&722 , unit, valid_max, valid_min )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 ) 723 785 724 786 END SUBROUTINE xios(is_defined_field_attr_hdl) 725 787 726 788 SUBROUTINE xios(is_defined_field_attr_hdl_) & 727 ( field_hdl, add_offset_, axis_ref_, compression_level_, default_value_, detect_missing_value_ & 728 , domain_ref_, enabled_, field_ref_, freq_offset_, freq_op_, grid_path_, grid_ref_, indexed_output_ & 729 , level_, long_name_, name_, operation_, prec_, read_access_, scalar_ref_, scale_factor_, standard_name_ & 730 , ts_enabled_, ts_split_freq_, unit_, valid_max_, valid_min_ ) 789 ( field_hdl, add_offset_, axis_ref_, cell_methods_, cell_methods_mode_, compression_level_, default_value_ & 790 , detect_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 ) 731 794 732 795 IMPLICIT NONE … … 736 799 LOGICAL, OPTIONAL, INTENT(OUT) :: axis_ref_ 737 800 LOGICAL(KIND=C_BOOL) :: axis_ref__tmp 801 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods_ 802 LOGICAL(KIND=C_BOOL) :: cell_methods__tmp 803 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods_mode_ 804 LOGICAL(KIND=C_BOOL) :: cell_methods_mode__tmp 738 805 LOGICAL, OPTIONAL, INTENT(OUT) :: compression_level_ 739 806 LOGICAL(KIND=C_BOOL) :: compression_level__tmp … … 746 813 LOGICAL, OPTIONAL, INTENT(OUT) :: enabled_ 747 814 LOGICAL(KIND=C_BOOL) :: enabled__tmp 815 LOGICAL, OPTIONAL, INTENT(OUT) :: expr_ 816 LOGICAL(KIND=C_BOOL) :: expr__tmp 748 817 LOGICAL, OPTIONAL, INTENT(OUT) :: field_ref_ 749 818 LOGICAL(KIND=C_BOOL) :: field_ref__tmp … … 799 868 ENDIF 800 869 870 IF (PRESENT(cell_methods_)) THEN 871 cell_methods__tmp = cxios_is_defined_field_cell_methods & 872 (field_hdl%daddr) 873 cell_methods_ = cell_methods__tmp 874 ENDIF 875 876 IF (PRESENT(cell_methods_mode_)) THEN 877 cell_methods_mode__tmp = cxios_is_defined_field_cell_methods_mode & 878 (field_hdl%daddr) 879 cell_methods_mode_ = cell_methods_mode__tmp 880 ENDIF 881 801 882 IF (PRESENT(compression_level_)) THEN 802 883 compression_level__tmp = cxios_is_defined_field_compression_level & … … 829 910 ENDIF 830 911 912 IF (PRESENT(expr_)) THEN 913 expr__tmp = cxios_is_defined_field_expr & 914 (field_hdl%daddr) 915 expr_ = expr__tmp 916 ENDIF 917 831 918 IF (PRESENT(field_ref_)) THEN 832 919 field_ref__tmp = cxios_is_defined_field_field_ref & -
XIOS/dev/dev_olga/src/interface/fortran_attr/ifieldgroup_attr.F90
r966 r1021 12 12 13 13 SUBROUTINE xios(set_fieldgroup_attr) & 14 ( fieldgroup_id, add_offset, axis_ref, compression_level, default_value, detect_missing_value & 15 , domain_ref, enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, group_ref, indexed_output & 16 , level, long_name, name, operation, prec, read_access, scalar_ref, scale_factor, standard_name & 17 , ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 14 ( fieldgroup_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, group_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 … … 22 23 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: add_offset 23 24 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: axis_ref 25 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods 26 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods_mode 24 27 INTEGER , OPTIONAL, INTENT(IN) :: compression_level 25 28 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: default_value … … 29 32 LOGICAL , OPTIONAL, INTENT(IN) :: enabled 30 33 LOGICAL (KIND=C_BOOL) :: enabled_tmp 34 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: expr 31 35 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: field_ref 32 36 TYPE(txios(duration)) , OPTIONAL, INTENT(IN) :: freq_offset … … 57 61 (fieldgroup_id,fieldgroup_hdl) 58 62 CALL xios(set_fieldgroup_attr_hdl_) & 59 ( fieldgroup_hdl, add_offset, axis_ref, compression_level, default_value, detect_missing_value & 60 , domain_ref, enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, group_ref, indexed_output & 61 , level, long_name, name, operation, prec, read_access, scalar_ref, scale_factor, standard_name & 62 , ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 63 ( fieldgroup_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 64 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 65 , grid_ref, group_ref, indexed_output, level, long_name, name, operation, prec, read_access & 66 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 67 ) 63 68 64 69 END SUBROUTINE xios(set_fieldgroup_attr) 65 70 66 71 SUBROUTINE xios(set_fieldgroup_attr_hdl) & 67 ( fieldgroup_hdl, add_offset, axis_ref, compression_level, default_value, detect_missing_value & 68 , domain_ref, enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, group_ref, indexed_output & 69 , level, long_name, name, operation, prec, read_access, scalar_ref, scale_factor, standard_name & 70 , ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 72 ( fieldgroup_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 73 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 74 , grid_ref, group_ref, indexed_output, level, long_name, name, operation, prec, read_access & 75 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 76 ) 71 77 72 78 IMPLICIT NONE … … 74 80 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: add_offset 75 81 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: axis_ref 82 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods 83 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods_mode 76 84 INTEGER , OPTIONAL, INTENT(IN) :: compression_level 77 85 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: default_value … … 81 89 LOGICAL , OPTIONAL, INTENT(IN) :: enabled 82 90 LOGICAL (KIND=C_BOOL) :: enabled_tmp 91 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: expr 83 92 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: field_ref 84 93 TYPE(txios(duration)) , OPTIONAL, INTENT(IN) :: freq_offset … … 107 116 108 117 CALL xios(set_fieldgroup_attr_hdl_) & 109 ( fieldgroup_hdl, add_offset, axis_ref, compression_level, default_value, detect_missing_value & 110 , domain_ref, enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, group_ref, indexed_output & 111 , level, long_name, name, operation, prec, read_access, scalar_ref, scale_factor, standard_name & 112 , ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 118 ( fieldgroup_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 119 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 120 , grid_ref, group_ref, indexed_output, level, long_name, name, operation, prec, read_access & 121 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 122 ) 113 123 114 124 END SUBROUTINE xios(set_fieldgroup_attr_hdl) 115 125 116 126 SUBROUTINE xios(set_fieldgroup_attr_hdl_) & 117 ( fieldgroup_hdl, add_offset_, axis_ref_, compression_level_, default_value_, detect_missing_value_ & 118 , domain_ref_, enabled_, field_ref_, freq_offset_, freq_op_, grid_path_, grid_ref_, group_ref_ & 119 , indexed_output_, level_, long_name_, name_, operation_, prec_, read_access_, scalar_ref_, scale_factor_ & 120 , standard_name_, ts_enabled_, ts_split_freq_, unit_, valid_max_, valid_min_ ) 127 ( fieldgroup_hdl, add_offset_, axis_ref_, cell_methods_, cell_methods_mode_, compression_level_ & 128 , default_value_, detect_missing_value_, domain_ref_, enabled_, expr_, field_ref_, freq_offset_ & 129 , freq_op_, grid_path_, grid_ref_, group_ref_, indexed_output_, level_, long_name_, name_, operation_ & 130 , prec_, read_access_, scalar_ref_, scale_factor_, standard_name_, ts_enabled_, ts_split_freq_ & 131 , unit_, valid_max_, valid_min_ ) 121 132 122 133 IMPLICIT NONE … … 124 135 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: add_offset_ 125 136 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: axis_ref_ 137 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods_ 138 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: cell_methods_mode_ 126 139 INTEGER , OPTIONAL, INTENT(IN) :: compression_level_ 127 140 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: default_value_ … … 131 144 LOGICAL , OPTIONAL, INTENT(IN) :: enabled_ 132 145 LOGICAL (KIND=C_BOOL) :: enabled__tmp 146 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: expr_ 133 147 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: field_ref_ 134 148 TYPE(txios(duration)) , OPTIONAL, INTENT(IN) :: freq_offset_ … … 166 180 ENDIF 167 181 182 IF (PRESENT(cell_methods_)) THEN 183 CALL cxios_set_fieldgroup_cell_methods & 184 (fieldgroup_hdl%daddr, cell_methods_, len(cell_methods_)) 185 ENDIF 186 187 IF (PRESENT(cell_methods_mode_)) THEN 188 CALL cxios_set_fieldgroup_cell_methods_mode & 189 (fieldgroup_hdl%daddr, cell_methods_mode_, len(cell_methods_mode_)) 190 ENDIF 191 168 192 IF (PRESENT(compression_level_)) THEN 169 193 CALL cxios_set_fieldgroup_compression_level & … … 193 217 ENDIF 194 218 219 IF (PRESENT(expr_)) THEN 220 CALL cxios_set_fieldgroup_expr & 221 (fieldgroup_hdl%daddr, expr_, len(expr_)) 222 ENDIF 223 195 224 IF (PRESENT(field_ref_)) THEN 196 225 CALL cxios_set_fieldgroup_field_ref & … … 304 333 305 334 SUBROUTINE xios(get_fieldgroup_attr) & 306 ( fieldgroup_id, add_offset, axis_ref, compression_level, default_value, detect_missing_value & 307 , domain_ref, enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, group_ref, indexed_output & 308 , level, long_name, name, operation, prec, read_access, scalar_ref, scale_factor, standard_name & 309 , ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 335 ( fieldgroup_id, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 336 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 337 , grid_ref, group_ref, indexed_output, level, long_name, name, operation, prec, read_access & 338 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 339 ) 310 340 311 341 IMPLICIT NONE … … 314 344 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: add_offset 315 345 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: axis_ref 346 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods 347 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods_mode 316 348 INTEGER , OPTIONAL, INTENT(OUT) :: compression_level 317 349 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: default_value … … 321 353 LOGICAL , OPTIONAL, INTENT(OUT) :: enabled 322 354 LOGICAL (KIND=C_BOOL) :: enabled_tmp 355 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: expr 323 356 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: field_ref 324 357 TYPE(txios(duration)) , OPTIONAL, INTENT(OUT) :: freq_offset … … 349 382 (fieldgroup_id,fieldgroup_hdl) 350 383 CALL xios(get_fieldgroup_attr_hdl_) & 351 ( fieldgroup_hdl, add_offset, axis_ref, compression_level, default_value, detect_missing_value & 352 , domain_ref, enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, group_ref, indexed_output & 353 , level, long_name, name, operation, prec, read_access, scalar_ref, scale_factor, standard_name & 354 , ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 384 ( fieldgroup_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 385 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 386 , grid_ref, group_ref, indexed_output, level, long_name, name, operation, prec, read_access & 387 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 388 ) 355 389 356 390 END SUBROUTINE xios(get_fieldgroup_attr) 357 391 358 392 SUBROUTINE xios(get_fieldgroup_attr_hdl) & 359 ( fieldgroup_hdl, add_offset, axis_ref, compression_level, default_value, detect_missing_value & 360 , domain_ref, enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, group_ref, indexed_output & 361 , level, long_name, name, operation, prec, read_access, scalar_ref, scale_factor, standard_name & 362 , ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 393 ( fieldgroup_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 394 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 395 , grid_ref, group_ref, indexed_output, level, long_name, name, operation, prec, read_access & 396 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 397 ) 363 398 364 399 IMPLICIT NONE … … 366 401 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: add_offset 367 402 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: axis_ref 403 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods 404 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods_mode 368 405 INTEGER , OPTIONAL, INTENT(OUT) :: compression_level 369 406 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: default_value … … 373 410 LOGICAL , OPTIONAL, INTENT(OUT) :: enabled 374 411 LOGICAL (KIND=C_BOOL) :: enabled_tmp 412 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: expr 375 413 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: field_ref 376 414 TYPE(txios(duration)) , OPTIONAL, INTENT(OUT) :: freq_offset … … 399 437 400 438 CALL xios(get_fieldgroup_attr_hdl_) & 401 ( fieldgroup_hdl, add_offset, axis_ref, compression_level, default_value, detect_missing_value & 402 , domain_ref, enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, group_ref, indexed_output & 403 , level, long_name, name, operation, prec, read_access, scalar_ref, scale_factor, standard_name & 404 , ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 439 ( fieldgroup_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 440 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 441 , grid_ref, group_ref, indexed_output, level, long_name, name, operation, prec, read_access & 442 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 443 ) 405 444 406 445 END SUBROUTINE xios(get_fieldgroup_attr_hdl) 407 446 408 447 SUBROUTINE xios(get_fieldgroup_attr_hdl_) & 409 ( fieldgroup_hdl, add_offset_, axis_ref_, compression_level_, default_value_, detect_missing_value_ & 410 , domain_ref_, enabled_, field_ref_, freq_offset_, freq_op_, grid_path_, grid_ref_, group_ref_ & 411 , indexed_output_, level_, long_name_, name_, operation_, prec_, read_access_, scalar_ref_, scale_factor_ & 412 , standard_name_, ts_enabled_, ts_split_freq_, unit_, valid_max_, valid_min_ ) 448 ( fieldgroup_hdl, add_offset_, axis_ref_, cell_methods_, cell_methods_mode_, compression_level_ & 449 , default_value_, detect_missing_value_, domain_ref_, enabled_, expr_, field_ref_, freq_offset_ & 450 , freq_op_, grid_path_, grid_ref_, group_ref_, indexed_output_, level_, long_name_, name_, operation_ & 451 , prec_, read_access_, scalar_ref_, scale_factor_, standard_name_, ts_enabled_, ts_split_freq_ & 452 , unit_, valid_max_, valid_min_ ) 413 453 414 454 IMPLICIT NONE … … 416 456 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: add_offset_ 417 457 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: axis_ref_ 458 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods_ 459 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: cell_methods_mode_ 418 460 INTEGER , OPTIONAL, INTENT(OUT) :: compression_level_ 419 461 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: default_value_ … … 423 465 LOGICAL , OPTIONAL, INTENT(OUT) :: enabled_ 424 466 LOGICAL (KIND=C_BOOL) :: enabled__tmp 467 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: expr_ 425 468 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: field_ref_ 426 469 TYPE(txios(duration)) , OPTIONAL, INTENT(OUT) :: freq_offset_ … … 458 501 ENDIF 459 502 503 IF (PRESENT(cell_methods_)) THEN 504 CALL cxios_get_fieldgroup_cell_methods & 505 (fieldgroup_hdl%daddr, cell_methods_, len(cell_methods_)) 506 ENDIF 507 508 IF (PRESENT(cell_methods_mode_)) THEN 509 CALL cxios_get_fieldgroup_cell_methods_mode & 510 (fieldgroup_hdl%daddr, cell_methods_mode_, len(cell_methods_mode_)) 511 ENDIF 512 460 513 IF (PRESENT(compression_level_)) THEN 461 514 CALL cxios_get_fieldgroup_compression_level & … … 485 538 ENDIF 486 539 540 IF (PRESENT(expr_)) THEN 541 CALL cxios_get_fieldgroup_expr & 542 (fieldgroup_hdl%daddr, expr_, len(expr_)) 543 ENDIF 544 487 545 IF (PRESENT(field_ref_)) THEN 488 546 CALL cxios_get_fieldgroup_field_ref & … … 596 654 597 655 SUBROUTINE xios(is_defined_fieldgroup_attr) & 598 ( fieldgroup_id, add_offset, axis_ref, compression_level, default_value, detect_missing_value & 599 , domain_ref, enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, group_ref, indexed_output & 600 , level, long_name, name, operation, prec, read_access, scalar_ref, scale_factor, standard_name & 601 , ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 656 ( fieldgroup_id, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 657 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 658 , grid_ref, group_ref, indexed_output, level, long_name, name, operation, prec, read_access & 659 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 660 ) 602 661 603 662 IMPLICIT NONE … … 608 667 LOGICAL, OPTIONAL, INTENT(OUT) :: axis_ref 609 668 LOGICAL(KIND=C_BOOL) :: axis_ref_tmp 669 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods 670 LOGICAL(KIND=C_BOOL) :: cell_methods_tmp 671 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods_mode 672 LOGICAL(KIND=C_BOOL) :: cell_methods_mode_tmp 610 673 LOGICAL, OPTIONAL, INTENT(OUT) :: compression_level 611 674 LOGICAL(KIND=C_BOOL) :: compression_level_tmp … … 618 681 LOGICAL, OPTIONAL, INTENT(OUT) :: enabled 619 682 LOGICAL(KIND=C_BOOL) :: enabled_tmp 683 LOGICAL, OPTIONAL, INTENT(OUT) :: expr 684 LOGICAL(KIND=C_BOOL) :: expr_tmp 620 685 LOGICAL, OPTIONAL, INTENT(OUT) :: field_ref 621 686 LOGICAL(KIND=C_BOOL) :: field_ref_tmp … … 664 729 (fieldgroup_id,fieldgroup_hdl) 665 730 CALL xios(is_defined_fieldgroup_attr_hdl_) & 666 ( fieldgroup_hdl, add_offset, axis_ref, compression_level, default_value, detect_missing_value & 667 , domain_ref, enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, group_ref, indexed_output & 668 , level, long_name, name, operation, prec, read_access, scalar_ref, scale_factor, standard_name & 669 , ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 731 ( fieldgroup_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 732 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 733 , grid_ref, group_ref, indexed_output, level, long_name, name, operation, prec, read_access & 734 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 735 ) 670 736 671 737 END SUBROUTINE xios(is_defined_fieldgroup_attr) 672 738 673 739 SUBROUTINE xios(is_defined_fieldgroup_attr_hdl) & 674 ( fieldgroup_hdl, add_offset, axis_ref, compression_level, default_value, detect_missing_value & 675 , domain_ref, enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, group_ref, indexed_output & 676 , level, long_name, name, operation, prec, read_access, scalar_ref, scale_factor, standard_name & 677 , ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 740 ( fieldgroup_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 741 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 742 , grid_ref, group_ref, indexed_output, level, long_name, name, operation, prec, read_access & 743 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 744 ) 678 745 679 746 IMPLICIT NONE … … 683 750 LOGICAL, OPTIONAL, INTENT(OUT) :: axis_ref 684 751 LOGICAL(KIND=C_BOOL) :: axis_ref_tmp 752 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods 753 LOGICAL(KIND=C_BOOL) :: cell_methods_tmp 754 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods_mode 755 LOGICAL(KIND=C_BOOL) :: cell_methods_mode_tmp 685 756 LOGICAL, OPTIONAL, INTENT(OUT) :: compression_level 686 757 LOGICAL(KIND=C_BOOL) :: compression_level_tmp … … 693 764 LOGICAL, OPTIONAL, INTENT(OUT) :: enabled 694 765 LOGICAL(KIND=C_BOOL) :: enabled_tmp 766 LOGICAL, OPTIONAL, INTENT(OUT) :: expr 767 LOGICAL(KIND=C_BOOL) :: expr_tmp 695 768 LOGICAL, OPTIONAL, INTENT(OUT) :: field_ref 696 769 LOGICAL(KIND=C_BOOL) :: field_ref_tmp … … 737 810 738 811 CALL xios(is_defined_fieldgroup_attr_hdl_) & 739 ( fieldgroup_hdl, add_offset, axis_ref, compression_level, default_value, detect_missing_value & 740 , domain_ref, enabled, field_ref, freq_offset, freq_op, grid_path, grid_ref, group_ref, indexed_output & 741 , level, long_name, name, operation, prec, read_access, scalar_ref, scale_factor, standard_name & 742 , ts_enabled, ts_split_freq, unit, valid_max, valid_min ) 812 ( fieldgroup_hdl, add_offset, axis_ref, cell_methods, cell_methods_mode, compression_level, default_value & 813 , detect_missing_value, domain_ref, enabled, expr, field_ref, freq_offset, freq_op, grid_path & 814 , grid_ref, group_ref, indexed_output, level, long_name, name, operation, prec, read_access & 815 , scalar_ref, scale_factor, standard_name, ts_enabled, ts_split_freq, unit, valid_max, valid_min & 816 ) 743 817 744 818 END SUBROUTINE xios(is_defined_fieldgroup_attr_hdl) 745 819 746 820 SUBROUTINE xios(is_defined_fieldgroup_attr_hdl_) & 747 ( fieldgroup_hdl, add_offset_, axis_ref_, compression_level_, default_value_, detect_missing_value_ & 748 , domain_ref_, enabled_, field_ref_, freq_offset_, freq_op_, grid_path_, grid_ref_, group_ref_ & 749 , indexed_output_, level_, long_name_, name_, operation_, prec_, read_access_, scalar_ref_, scale_factor_ & 750 , standard_name_, ts_enabled_, ts_split_freq_, unit_, valid_max_, valid_min_ ) 821 ( fieldgroup_hdl, add_offset_, axis_ref_, cell_methods_, cell_methods_mode_, compression_level_ & 822 , default_value_, detect_missing_value_, domain_ref_, enabled_, expr_, field_ref_, freq_offset_ & 823 , freq_op_, grid_path_, grid_ref_, group_ref_, indexed_output_, level_, long_name_, name_, operation_ & 824 , prec_, read_access_, scalar_ref_, scale_factor_, standard_name_, ts_enabled_, ts_split_freq_ & 825 , unit_, valid_max_, valid_min_ ) 751 826 752 827 IMPLICIT NONE … … 756 831 LOGICAL, OPTIONAL, INTENT(OUT) :: axis_ref_ 757 832 LOGICAL(KIND=C_BOOL) :: axis_ref__tmp 833 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods_ 834 LOGICAL(KIND=C_BOOL) :: cell_methods__tmp 835 LOGICAL, OPTIONAL, INTENT(OUT) :: cell_methods_mode_ 836 LOGICAL(KIND=C_BOOL) :: cell_methods_mode__tmp 758 837 LOGICAL, OPTIONAL, INTENT(OUT) :: compression_level_ 759 838 LOGICAL(KIND=C_BOOL) :: compression_level__tmp … … 766 845 LOGICAL, OPTIONAL, INTENT(OUT) :: enabled_ 767 846 LOGICAL(KIND=C_BOOL) :: enabled__tmp 847 LOGICAL, OPTIONAL, INTENT(OUT) :: expr_ 848 LOGICAL(KIND=C_BOOL) :: expr__tmp 768 849 LOGICAL, OPTIONAL, INTENT(OUT) :: field_ref_ 769 850 LOGICAL(KIND=C_BOOL) :: field_ref__tmp … … 821 902 ENDIF 822 903 904 IF (PRESENT(cell_methods_)) THEN 905 cell_methods__tmp = cxios_is_defined_fieldgroup_cell_methods & 906 (fieldgroup_hdl%daddr) 907 cell_methods_ = cell_methods__tmp 908 ENDIF 909 910 IF (PRESENT(cell_methods_mode_)) THEN 911 cell_methods_mode__tmp = cxios_is_defined_fieldgroup_cell_methods_mode & 912 (fieldgroup_hdl%daddr) 913 cell_methods_mode_ = cell_methods_mode__tmp 914 ENDIF 915 823 916 IF (PRESENT(compression_level_)) THEN 824 917 compression_level__tmp = cxios_is_defined_fieldgroup_compression_level & … … 851 944 ENDIF 852 945 946 IF (PRESENT(expr_)) THEN 947 expr__tmp = cxios_is_defined_fieldgroup_expr & 948 (fieldgroup_hdl%daddr) 949 expr_ = expr__tmp 950 ENDIF 951 853 952 IF (PRESENT(field_ref_)) THEN 854 953 field_ref__tmp = cxios_is_defined_fieldgroup_field_ref & -
XIOS/dev/dev_olga/src/interface/fortran_attr/iinterpolate_domain_attr.F90
r966 r1021 12 12 13 13 SUBROUTINE xios(set_interpolate_domain_attr) & 14 ( interpolate_domain_id, file, order, renormalize)14 ( interpolate_domain_id, file, mode, order, renormalize, weight_filename, write_weight ) 15 15 16 16 IMPLICIT NONE … … 18 18 CHARACTER(LEN=*), INTENT(IN) ::interpolate_domain_id 19 19 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: file 20 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: mode 20 21 INTEGER , OPTIONAL, INTENT(IN) :: order 21 22 LOGICAL , OPTIONAL, INTENT(IN) :: renormalize 22 23 LOGICAL (KIND=C_BOOL) :: renormalize_tmp 24 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: weight_filename 25 LOGICAL , OPTIONAL, INTENT(IN) :: write_weight 26 LOGICAL (KIND=C_BOOL) :: write_weight_tmp 23 27 24 28 CALL xios(get_interpolate_domain_handle) & 25 29 (interpolate_domain_id,interpolate_domain_hdl) 26 30 CALL xios(set_interpolate_domain_attr_hdl_) & 27 ( interpolate_domain_hdl, file, order, renormalize)31 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 28 32 29 33 END SUBROUTINE xios(set_interpolate_domain_attr) 30 34 31 35 SUBROUTINE xios(set_interpolate_domain_attr_hdl) & 32 ( interpolate_domain_hdl, file, order, renormalize)36 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 33 37 34 38 IMPLICIT NONE 35 39 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 36 40 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: file 41 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: mode 37 42 INTEGER , OPTIONAL, INTENT(IN) :: order 38 43 LOGICAL , OPTIONAL, INTENT(IN) :: renormalize 39 44 LOGICAL (KIND=C_BOOL) :: renormalize_tmp 45 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: weight_filename 46 LOGICAL , OPTIONAL, INTENT(IN) :: write_weight 47 LOGICAL (KIND=C_BOOL) :: write_weight_tmp 40 48 41 49 CALL xios(set_interpolate_domain_attr_hdl_) & 42 ( interpolate_domain_hdl, file, order, renormalize)50 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 43 51 44 52 END SUBROUTINE xios(set_interpolate_domain_attr_hdl) 45 53 46 54 SUBROUTINE xios(set_interpolate_domain_attr_hdl_) & 47 ( interpolate_domain_hdl, file_, order_, renormalize_ ) 55 ( interpolate_domain_hdl, file_, mode_, order_, renormalize_, weight_filename_, write_weight_ & 56 ) 48 57 49 58 IMPLICIT NONE 50 59 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 51 60 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: file_ 61 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: mode_ 52 62 INTEGER , OPTIONAL, INTENT(IN) :: order_ 53 63 LOGICAL , OPTIONAL, INTENT(IN) :: renormalize_ 54 64 LOGICAL (KIND=C_BOOL) :: renormalize__tmp 65 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: weight_filename_ 66 LOGICAL , OPTIONAL, INTENT(IN) :: write_weight_ 67 LOGICAL (KIND=C_BOOL) :: write_weight__tmp 55 68 56 69 IF (PRESENT(file_)) THEN 57 70 CALL cxios_set_interpolate_domain_file & 58 71 (interpolate_domain_hdl%daddr, file_, len(file_)) 72 ENDIF 73 74 IF (PRESENT(mode_)) THEN 75 CALL cxios_set_interpolate_domain_mode & 76 (interpolate_domain_hdl%daddr, mode_, len(mode_)) 59 77 ENDIF 60 78 … … 70 88 ENDIF 71 89 90 IF (PRESENT(weight_filename_)) THEN 91 CALL cxios_set_interpolate_domain_weight_filename & 92 (interpolate_domain_hdl%daddr, weight_filename_, len(weight_filename_)) 93 ENDIF 94 95 IF (PRESENT(write_weight_)) THEN 96 write_weight__tmp = write_weight_ 97 CALL cxios_set_interpolate_domain_write_weight & 98 (interpolate_domain_hdl%daddr, write_weight__tmp) 99 ENDIF 100 72 101 END SUBROUTINE xios(set_interpolate_domain_attr_hdl_) 73 102 74 103 SUBROUTINE xios(get_interpolate_domain_attr) & 75 ( interpolate_domain_id, file, order, renormalize)104 ( interpolate_domain_id, file, mode, order, renormalize, weight_filename, write_weight ) 76 105 77 106 IMPLICIT NONE … … 79 108 CHARACTER(LEN=*), INTENT(IN) ::interpolate_domain_id 80 109 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: file 110 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: mode 81 111 INTEGER , OPTIONAL, INTENT(OUT) :: order 82 112 LOGICAL , OPTIONAL, INTENT(OUT) :: renormalize 83 113 LOGICAL (KIND=C_BOOL) :: renormalize_tmp 114 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: weight_filename 115 LOGICAL , OPTIONAL, INTENT(OUT) :: write_weight 116 LOGICAL (KIND=C_BOOL) :: write_weight_tmp 84 117 85 118 CALL xios(get_interpolate_domain_handle) & 86 119 (interpolate_domain_id,interpolate_domain_hdl) 87 120 CALL xios(get_interpolate_domain_attr_hdl_) & 88 ( interpolate_domain_hdl, file, order, renormalize)121 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 89 122 90 123 END SUBROUTINE xios(get_interpolate_domain_attr) 91 124 92 125 SUBROUTINE xios(get_interpolate_domain_attr_hdl) & 93 ( interpolate_domain_hdl, file, order, renormalize)126 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 94 127 95 128 IMPLICIT NONE 96 129 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 97 130 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: file 131 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: mode 98 132 INTEGER , OPTIONAL, INTENT(OUT) :: order 99 133 LOGICAL , OPTIONAL, INTENT(OUT) :: renormalize 100 134 LOGICAL (KIND=C_BOOL) :: renormalize_tmp 135 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: weight_filename 136 LOGICAL , OPTIONAL, INTENT(OUT) :: write_weight 137 LOGICAL (KIND=C_BOOL) :: write_weight_tmp 101 138 102 139 CALL xios(get_interpolate_domain_attr_hdl_) & 103 ( interpolate_domain_hdl, file, order, renormalize)140 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 104 141 105 142 END SUBROUTINE xios(get_interpolate_domain_attr_hdl) 106 143 107 144 SUBROUTINE xios(get_interpolate_domain_attr_hdl_) & 108 ( interpolate_domain_hdl, file_, order_, renormalize_ ) 145 ( interpolate_domain_hdl, file_, mode_, order_, renormalize_, weight_filename_, write_weight_ & 146 ) 109 147 110 148 IMPLICIT NONE 111 149 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 112 150 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: file_ 151 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: mode_ 113 152 INTEGER , OPTIONAL, INTENT(OUT) :: order_ 114 153 LOGICAL , OPTIONAL, INTENT(OUT) :: renormalize_ 115 154 LOGICAL (KIND=C_BOOL) :: renormalize__tmp 155 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: weight_filename_ 156 LOGICAL , OPTIONAL, INTENT(OUT) :: write_weight_ 157 LOGICAL (KIND=C_BOOL) :: write_weight__tmp 116 158 117 159 IF (PRESENT(file_)) THEN 118 160 CALL cxios_get_interpolate_domain_file & 119 161 (interpolate_domain_hdl%daddr, file_, len(file_)) 162 ENDIF 163 164 IF (PRESENT(mode_)) THEN 165 CALL cxios_get_interpolate_domain_mode & 166 (interpolate_domain_hdl%daddr, mode_, len(mode_)) 120 167 ENDIF 121 168 … … 131 178 ENDIF 132 179 180 IF (PRESENT(weight_filename_)) THEN 181 CALL cxios_get_interpolate_domain_weight_filename & 182 (interpolate_domain_hdl%daddr, weight_filename_, len(weight_filename_)) 183 ENDIF 184 185 IF (PRESENT(write_weight_)) THEN 186 CALL cxios_get_interpolate_domain_write_weight & 187 (interpolate_domain_hdl%daddr, write_weight__tmp) 188 write_weight_ = write_weight__tmp 189 ENDIF 190 133 191 END SUBROUTINE xios(get_interpolate_domain_attr_hdl_) 134 192 135 193 SUBROUTINE xios(is_defined_interpolate_domain_attr) & 136 ( interpolate_domain_id, file, order, renormalize)194 ( interpolate_domain_id, file, mode, order, renormalize, weight_filename, write_weight ) 137 195 138 196 IMPLICIT NONE … … 141 199 LOGICAL, OPTIONAL, INTENT(OUT) :: file 142 200 LOGICAL(KIND=C_BOOL) :: file_tmp 201 LOGICAL, OPTIONAL, INTENT(OUT) :: mode 202 LOGICAL(KIND=C_BOOL) :: mode_tmp 143 203 LOGICAL, OPTIONAL, INTENT(OUT) :: order 144 204 LOGICAL(KIND=C_BOOL) :: order_tmp 145 205 LOGICAL, OPTIONAL, INTENT(OUT) :: renormalize 146 206 LOGICAL(KIND=C_BOOL) :: renormalize_tmp 207 LOGICAL, OPTIONAL, INTENT(OUT) :: weight_filename 208 LOGICAL(KIND=C_BOOL) :: weight_filename_tmp 209 LOGICAL, OPTIONAL, INTENT(OUT) :: write_weight 210 LOGICAL(KIND=C_BOOL) :: write_weight_tmp 147 211 148 212 CALL xios(get_interpolate_domain_handle) & 149 213 (interpolate_domain_id,interpolate_domain_hdl) 150 214 CALL xios(is_defined_interpolate_domain_attr_hdl_) & 151 ( interpolate_domain_hdl, file, order, renormalize)215 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 152 216 153 217 END SUBROUTINE xios(is_defined_interpolate_domain_attr) 154 218 155 219 SUBROUTINE xios(is_defined_interpolate_domain_attr_hdl) & 156 ( interpolate_domain_hdl, file, order, renormalize)220 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 157 221 158 222 IMPLICIT NONE … … 160 224 LOGICAL, OPTIONAL, INTENT(OUT) :: file 161 225 LOGICAL(KIND=C_BOOL) :: file_tmp 226 LOGICAL, OPTIONAL, INTENT(OUT) :: mode 227 LOGICAL(KIND=C_BOOL) :: mode_tmp 162 228 LOGICAL, OPTIONAL, INTENT(OUT) :: order 163 229 LOGICAL(KIND=C_BOOL) :: order_tmp 164 230 LOGICAL, OPTIONAL, INTENT(OUT) :: renormalize 165 231 LOGICAL(KIND=C_BOOL) :: renormalize_tmp 232 LOGICAL, OPTIONAL, INTENT(OUT) :: weight_filename 233 LOGICAL(KIND=C_BOOL) :: weight_filename_tmp 234 LOGICAL, OPTIONAL, INTENT(OUT) :: write_weight 235 LOGICAL(KIND=C_BOOL) :: write_weight_tmp 166 236 167 237 CALL xios(is_defined_interpolate_domain_attr_hdl_) & 168 ( interpolate_domain_hdl, file, order, renormalize)238 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 169 239 170 240 END SUBROUTINE xios(is_defined_interpolate_domain_attr_hdl) 171 241 172 242 SUBROUTINE xios(is_defined_interpolate_domain_attr_hdl_) & 173 ( interpolate_domain_hdl, file_, order_, renormalize_ ) 243 ( interpolate_domain_hdl, file_, mode_, order_, renormalize_, weight_filename_, write_weight_ & 244 ) 174 245 175 246 IMPLICIT NONE … … 177 248 LOGICAL, OPTIONAL, INTENT(OUT) :: file_ 178 249 LOGICAL(KIND=C_BOOL) :: file__tmp 250 LOGICAL, OPTIONAL, INTENT(OUT) :: mode_ 251 LOGICAL(KIND=C_BOOL) :: mode__tmp 179 252 LOGICAL, OPTIONAL, INTENT(OUT) :: order_ 180 253 LOGICAL(KIND=C_BOOL) :: order__tmp 181 254 LOGICAL, OPTIONAL, INTENT(OUT) :: renormalize_ 182 255 LOGICAL(KIND=C_BOOL) :: renormalize__tmp 256 LOGICAL, OPTIONAL, INTENT(OUT) :: weight_filename_ 257 LOGICAL(KIND=C_BOOL) :: weight_filename__tmp 258 LOGICAL, OPTIONAL, INTENT(OUT) :: write_weight_ 259 LOGICAL(KIND=C_BOOL) :: write_weight__tmp 183 260 184 261 IF (PRESENT(file_)) THEN … … 188 265 ENDIF 189 266 267 IF (PRESENT(mode_)) THEN 268 mode__tmp = cxios_is_defined_interpolate_domain_mode & 269 (interpolate_domain_hdl%daddr) 270 mode_ = mode__tmp 271 ENDIF 272 190 273 IF (PRESENT(order_)) THEN 191 274 order__tmp = cxios_is_defined_interpolate_domain_order & … … 200 283 ENDIF 201 284 285 IF (PRESENT(weight_filename_)) THEN 286 weight_filename__tmp = cxios_is_defined_interpolate_domain_weight_filename & 287 (interpolate_domain_hdl%daddr) 288 weight_filename_ = weight_filename__tmp 289 ENDIF 290 291 IF (PRESENT(write_weight_)) THEN 292 write_weight__tmp = cxios_is_defined_interpolate_domain_write_weight & 293 (interpolate_domain_hdl%daddr) 294 write_weight_ = write_weight__tmp 295 ENDIF 296 202 297 END SUBROUTINE xios(is_defined_interpolate_domain_attr_hdl_) 203 298 -
XIOS/dev/dev_olga/src/interface/fortran_attr/interpolate_domain_interface_attr.F90
r891 r1021 29 29 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl 30 30 END FUNCTION cxios_is_defined_interpolate_domain_file 31 32 33 SUBROUTINE cxios_set_interpolate_domain_mode(interpolate_domain_hdl, mode, mode_size) BIND(C) 34 USE ISO_C_BINDING 35 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl 36 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: mode 37 INTEGER (kind = C_INT) , VALUE :: mode_size 38 END SUBROUTINE cxios_set_interpolate_domain_mode 39 40 SUBROUTINE cxios_get_interpolate_domain_mode(interpolate_domain_hdl, mode, mode_size) BIND(C) 41 USE ISO_C_BINDING 42 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl 43 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: mode 44 INTEGER (kind = C_INT) , VALUE :: mode_size 45 END SUBROUTINE cxios_get_interpolate_domain_mode 46 47 FUNCTION cxios_is_defined_interpolate_domain_mode(interpolate_domain_hdl) BIND(C) 48 USE ISO_C_BINDING 49 LOGICAL(kind=C_BOOL) :: cxios_is_defined_interpolate_domain_mode 50 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl 51 END FUNCTION cxios_is_defined_interpolate_domain_mode 31 52 32 53 … … 68 89 END FUNCTION cxios_is_defined_interpolate_domain_renormalize 69 90 91 92 SUBROUTINE cxios_set_interpolate_domain_weight_filename(interpolate_domain_hdl, weight_filename, weight_filename_size) BIND(C) 93 USE ISO_C_BINDING 94 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl 95 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: weight_filename 96 INTEGER (kind = C_INT) , VALUE :: weight_filename_size 97 END SUBROUTINE cxios_set_interpolate_domain_weight_filename 98 99 SUBROUTINE cxios_get_interpolate_domain_weight_filename(interpolate_domain_hdl, weight_filename, weight_filename_size) BIND(C) 100 USE ISO_C_BINDING 101 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl 102 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: weight_filename 103 INTEGER (kind = C_INT) , VALUE :: weight_filename_size 104 END SUBROUTINE cxios_get_interpolate_domain_weight_filename 105 106 FUNCTION cxios_is_defined_interpolate_domain_weight_filename(interpolate_domain_hdl) BIND(C) 107 USE ISO_C_BINDING 108 LOGICAL(kind=C_BOOL) :: cxios_is_defined_interpolate_domain_weight_filename 109 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl 110 END FUNCTION cxios_is_defined_interpolate_domain_weight_filename 111 112 113 SUBROUTINE cxios_set_interpolate_domain_write_weight(interpolate_domain_hdl, write_weight) BIND(C) 114 USE ISO_C_BINDING 115 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl 116 LOGICAL (KIND=C_BOOL) , VALUE :: write_weight 117 END SUBROUTINE cxios_set_interpolate_domain_write_weight 118 119 SUBROUTINE cxios_get_interpolate_domain_write_weight(interpolate_domain_hdl, write_weight) BIND(C) 120 USE ISO_C_BINDING 121 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl 122 LOGICAL (KIND=C_BOOL) :: write_weight 123 END SUBROUTINE cxios_get_interpolate_domain_write_weight 124 125 FUNCTION cxios_is_defined_interpolate_domain_write_weight(interpolate_domain_hdl) BIND(C) 126 USE ISO_C_BINDING 127 LOGICAL(kind=C_BOOL) :: cxios_is_defined_interpolate_domain_write_weight 128 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl 129 END FUNCTION cxios_is_defined_interpolate_domain_write_weight 130 70 131 END INTERFACE 71 132
Note: See TracChangeset
for help on using the changeset viewer.