Changeset 817 for XIOS/trunk/src/interface/fortran_attr/iaxisgroup_attr.F90
- Timestamp:
- 01/26/16 18:19:09 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/fortran_attr/iaxisgroup_attr.F90
r779 r817 12 12 13 13 SUBROUTINE xios(set_axisgroup_attr) & 14 ( axisgroup_id, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, long_name &14 ( axisgroup_id, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, index, long_name & 15 15 , mask, n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 16 16 … … 25 25 INTEGER , OPTIONAL, INTENT(IN) :: data_n 26 26 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: group_ref 27 INTEGER , OPTIONAL, INTENT(IN) :: index(:) 27 28 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: long_name 28 29 LOGICAL , OPTIONAL, INTENT(IN) :: mask(:) … … 39 40 CALL xios(get_axisgroup_handle)(axisgroup_id,axisgroup_hdl) 40 41 CALL xios(set_axisgroup_attr_hdl_) & 41 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, long_name &42 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, index, long_name & 42 43 , mask, n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 43 44 … … 45 46 46 47 SUBROUTINE xios(set_axisgroup_attr_hdl) & 47 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, long_name &48 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, index, long_name & 48 49 , mask, n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 49 50 … … 57 58 INTEGER , OPTIONAL, INTENT(IN) :: data_n 58 59 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: group_ref 60 INTEGER , OPTIONAL, INTENT(IN) :: index(:) 59 61 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: long_name 60 62 LOGICAL , OPTIONAL, INTENT(IN) :: mask(:) … … 70 72 71 73 CALL xios(set_axisgroup_attr_hdl_) & 72 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, long_name &74 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, index, long_name & 73 75 , mask, n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 74 76 … … 76 78 77 79 SUBROUTINE xios(set_axisgroup_attr_hdl_) & 78 ( axisgroup_hdl, axis_ref_, begin_, bounds_, data_begin_, data_index_, data_n_, group_ref_, long_name_ &79 , mask_, n_, n_distributed_partition_, n_glo_, name_, positive_, standard_name_, unit_, value_ &80 )80 ( axisgroup_hdl, axis_ref_, begin_, bounds_, data_begin_, data_index_, data_n_, group_ref_, index_ & 81 , long_name_, mask_, n_, n_distributed_partition_, n_glo_, name_, positive_, standard_name_ & 82 , unit_, value_ ) 81 83 82 84 IMPLICIT NONE … … 89 91 INTEGER , OPTIONAL, INTENT(IN) :: data_n_ 90 92 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: group_ref_ 93 INTEGER , OPTIONAL, INTENT(IN) :: index_(:) 91 94 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: long_name_ 92 95 LOGICAL , OPTIONAL, INTENT(IN) :: mask_(:) … … 129 132 ENDIF 130 133 134 IF (PRESENT(index_)) THEN 135 CALL cxios_set_axisgroup_index(axisgroup_hdl%daddr, index_, SHAPE(index_)) 136 ENDIF 137 131 138 IF (PRESENT(long_name_)) THEN 132 139 CALL cxios_set_axisgroup_long_name(axisgroup_hdl%daddr, long_name_, len(long_name_)) … … 174 181 175 182 SUBROUTINE xios(get_axisgroup_attr) & 176 ( axisgroup_id, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, long_name &183 ( axisgroup_id, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, index, long_name & 177 184 , mask, n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 178 185 … … 187 194 INTEGER , OPTIONAL, INTENT(OUT) :: data_n 188 195 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: group_ref 196 INTEGER , OPTIONAL, INTENT(OUT) :: index(:) 189 197 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: long_name 190 198 LOGICAL , OPTIONAL, INTENT(OUT) :: mask(:) … … 201 209 CALL xios(get_axisgroup_handle)(axisgroup_id,axisgroup_hdl) 202 210 CALL xios(get_axisgroup_attr_hdl_) & 203 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, long_name &211 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, index, long_name & 204 212 , mask, n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 205 213 … … 207 215 208 216 SUBROUTINE xios(get_axisgroup_attr_hdl) & 209 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, long_name &217 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, index, long_name & 210 218 , mask, n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 211 219 … … 219 227 INTEGER , OPTIONAL, INTENT(OUT) :: data_n 220 228 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: group_ref 229 INTEGER , OPTIONAL, INTENT(OUT) :: index(:) 221 230 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: long_name 222 231 LOGICAL , OPTIONAL, INTENT(OUT) :: mask(:) … … 232 241 233 242 CALL xios(get_axisgroup_attr_hdl_) & 234 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, long_name &243 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, index, long_name & 235 244 , mask, n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 236 245 … … 238 247 239 248 SUBROUTINE xios(get_axisgroup_attr_hdl_) & 240 ( axisgroup_hdl, axis_ref_, begin_, bounds_, data_begin_, data_index_, data_n_, group_ref_, long_name_ &241 , mask_, n_, n_distributed_partition_, n_glo_, name_, positive_, standard_name_, unit_, value_ &242 )249 ( axisgroup_hdl, axis_ref_, begin_, bounds_, data_begin_, data_index_, data_n_, group_ref_, index_ & 250 , long_name_, mask_, n_, n_distributed_partition_, n_glo_, name_, positive_, standard_name_ & 251 , unit_, value_ ) 243 252 244 253 IMPLICIT NONE … … 251 260 INTEGER , OPTIONAL, INTENT(OUT) :: data_n_ 252 261 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: group_ref_ 262 INTEGER , OPTIONAL, INTENT(OUT) :: index_(:) 253 263 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: long_name_ 254 264 LOGICAL , OPTIONAL, INTENT(OUT) :: mask_(:) … … 291 301 ENDIF 292 302 303 IF (PRESENT(index_)) THEN 304 CALL cxios_get_axisgroup_index(axisgroup_hdl%daddr, index_, SHAPE(index_)) 305 ENDIF 306 293 307 IF (PRESENT(long_name_)) THEN 294 308 CALL cxios_get_axisgroup_long_name(axisgroup_hdl%daddr, long_name_, len(long_name_)) … … 336 350 337 351 SUBROUTINE xios(is_defined_axisgroup_attr) & 338 ( axisgroup_id, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, long_name &352 ( axisgroup_id, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, index, long_name & 339 353 , mask, n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 340 354 … … 356 370 LOGICAL, OPTIONAL, INTENT(OUT) :: group_ref 357 371 LOGICAL(KIND=C_BOOL) :: group_ref_tmp 372 LOGICAL, OPTIONAL, INTENT(OUT) :: index 373 LOGICAL(KIND=C_BOOL) :: index_tmp 358 374 LOGICAL, OPTIONAL, INTENT(OUT) :: long_name 359 375 LOGICAL(KIND=C_BOOL) :: long_name_tmp … … 379 395 CALL xios(get_axisgroup_handle)(axisgroup_id,axisgroup_hdl) 380 396 CALL xios(is_defined_axisgroup_attr_hdl_) & 381 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, long_name &397 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, index, long_name & 382 398 , mask, n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 383 399 … … 385 401 386 402 SUBROUTINE xios(is_defined_axisgroup_attr_hdl) & 387 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, long_name &403 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, index, long_name & 388 404 , mask, n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 389 405 … … 404 420 LOGICAL, OPTIONAL, INTENT(OUT) :: group_ref 405 421 LOGICAL(KIND=C_BOOL) :: group_ref_tmp 422 LOGICAL, OPTIONAL, INTENT(OUT) :: index 423 LOGICAL(KIND=C_BOOL) :: index_tmp 406 424 LOGICAL, OPTIONAL, INTENT(OUT) :: long_name 407 425 LOGICAL(KIND=C_BOOL) :: long_name_tmp … … 426 444 427 445 CALL xios(is_defined_axisgroup_attr_hdl_) & 428 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, long_name &446 ( axisgroup_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, group_ref, index, long_name & 429 447 , mask, n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 430 448 … … 432 450 433 451 SUBROUTINE xios(is_defined_axisgroup_attr_hdl_) & 434 ( axisgroup_hdl, axis_ref_, begin_, bounds_, data_begin_, data_index_, data_n_, group_ref_, long_name_ &435 , mask_, n_, n_distributed_partition_, n_glo_, name_, positive_, standard_name_, unit_, value_ &436 )452 ( axisgroup_hdl, axis_ref_, begin_, bounds_, data_begin_, data_index_, data_n_, group_ref_, index_ & 453 , long_name_, mask_, n_, n_distributed_partition_, n_glo_, name_, positive_, standard_name_ & 454 , unit_, value_ ) 437 455 438 456 IMPLICIT NONE … … 452 470 LOGICAL, OPTIONAL, INTENT(OUT) :: group_ref_ 453 471 LOGICAL(KIND=C_BOOL) :: group_ref__tmp 472 LOGICAL, OPTIONAL, INTENT(OUT) :: index_ 473 LOGICAL(KIND=C_BOOL) :: index__tmp 454 474 LOGICAL, OPTIONAL, INTENT(OUT) :: long_name_ 455 475 LOGICAL(KIND=C_BOOL) :: long_name__tmp … … 508 528 ENDIF 509 529 530 IF (PRESENT(index_)) THEN 531 index__tmp = cxios_is_defined_axisgroup_index(axisgroup_hdl%daddr) 532 index_ = index__tmp 533 ENDIF 534 510 535 IF (PRESENT(long_name_)) THEN 511 536 long_name__tmp = cxios_is_defined_axisgroup_long_name(axisgroup_hdl%daddr)
Note: See TracChangeset
for help on using the changeset viewer.