Changeset 966 for XIOS/trunk/src/interface/fortran_attr/iaxis_attr.F90
- Timestamp:
- 10/10/16 16:01:11 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/fortran_attr/iaxis_attr.F90
r817 r966 37 37 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: value(:) 38 38 39 CALL xios(get_axis_handle)(axis_id,axis_hdl) 39 CALL xios(get_axis_handle) & 40 (axis_id,axis_hdl) 40 41 CALL xios(set_axis_attr_hdl_) & 41 42 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask & … … 102 103 103 104 IF (PRESENT(axis_ref_)) THEN 104 CALL cxios_set_axis_axis_ref(axis_hdl%daddr, axis_ref_, len(axis_ref_)) 105 CALL cxios_set_axis_axis_ref & 106 (axis_hdl%daddr, axis_ref_, len(axis_ref_)) 105 107 ENDIF 106 108 107 109 IF (PRESENT(begin_)) THEN 108 CALL cxios_set_axis_begin(axis_hdl%daddr, begin_) 110 CALL cxios_set_axis_begin & 111 (axis_hdl%daddr, begin_) 109 112 ENDIF 110 113 111 114 IF (PRESENT(bounds_)) THEN 112 CALL cxios_set_axis_bounds(axis_hdl%daddr, bounds_, SHAPE(bounds_)) 115 CALL cxios_set_axis_bounds & 116 (axis_hdl%daddr, bounds_, SHAPE(bounds_)) 113 117 ENDIF 114 118 115 119 IF (PRESENT(data_begin_)) THEN 116 CALL cxios_set_axis_data_begin(axis_hdl%daddr, data_begin_) 120 CALL cxios_set_axis_data_begin & 121 (axis_hdl%daddr, data_begin_) 117 122 ENDIF 118 123 119 124 IF (PRESENT(data_index_)) THEN 120 CALL cxios_set_axis_data_index(axis_hdl%daddr, data_index_, SHAPE(data_index_)) 125 CALL cxios_set_axis_data_index & 126 (axis_hdl%daddr, data_index_, SHAPE(data_index_)) 121 127 ENDIF 122 128 123 129 IF (PRESENT(data_n_)) THEN 124 CALL cxios_set_axis_data_n(axis_hdl%daddr, data_n_) 130 CALL cxios_set_axis_data_n & 131 (axis_hdl%daddr, data_n_) 125 132 ENDIF 126 133 127 134 IF (PRESENT(index_)) THEN 128 CALL cxios_set_axis_index(axis_hdl%daddr, index_, SHAPE(index_)) 135 CALL cxios_set_axis_index & 136 (axis_hdl%daddr, index_, SHAPE(index_)) 129 137 ENDIF 130 138 131 139 IF (PRESENT(long_name_)) THEN 132 CALL cxios_set_axis_long_name(axis_hdl%daddr, long_name_, len(long_name_)) 140 CALL cxios_set_axis_long_name & 141 (axis_hdl%daddr, long_name_, len(long_name_)) 133 142 ENDIF 134 143 … … 136 145 ALLOCATE(mask__tmp(SIZE(mask_,1))) 137 146 mask__tmp = mask_ 138 CALL cxios_set_axis_mask(axis_hdl%daddr, mask__tmp, SHAPE(mask_)) 147 CALL cxios_set_axis_mask & 148 (axis_hdl%daddr, mask__tmp, SHAPE(mask_)) 139 149 ENDIF 140 150 141 151 IF (PRESENT(n_)) THEN 142 CALL cxios_set_axis_n(axis_hdl%daddr, n_) 152 CALL cxios_set_axis_n & 153 (axis_hdl%daddr, n_) 143 154 ENDIF 144 155 145 156 IF (PRESENT(n_distributed_partition_)) THEN 146 CALL cxios_set_axis_n_distributed_partition(axis_hdl%daddr, n_distributed_partition_) 157 CALL cxios_set_axis_n_distributed_partition & 158 (axis_hdl%daddr, n_distributed_partition_) 147 159 ENDIF 148 160 149 161 IF (PRESENT(n_glo_)) THEN 150 CALL cxios_set_axis_n_glo(axis_hdl%daddr, n_glo_) 162 CALL cxios_set_axis_n_glo & 163 (axis_hdl%daddr, n_glo_) 151 164 ENDIF 152 165 153 166 IF (PRESENT(name_)) THEN 154 CALL cxios_set_axis_name(axis_hdl%daddr, name_, len(name_)) 167 CALL cxios_set_axis_name & 168 (axis_hdl%daddr, name_, len(name_)) 155 169 ENDIF 156 170 157 171 IF (PRESENT(positive_)) THEN 158 CALL cxios_set_axis_positive(axis_hdl%daddr, positive_, len(positive_)) 172 CALL cxios_set_axis_positive & 173 (axis_hdl%daddr, positive_, len(positive_)) 159 174 ENDIF 160 175 161 176 IF (PRESENT(standard_name_)) THEN 162 CALL cxios_set_axis_standard_name(axis_hdl%daddr, standard_name_, len(standard_name_)) 177 CALL cxios_set_axis_standard_name & 178 (axis_hdl%daddr, standard_name_, len(standard_name_)) 163 179 ENDIF 164 180 165 181 IF (PRESENT(unit_)) THEN 166 CALL cxios_set_axis_unit(axis_hdl%daddr, unit_, len(unit_)) 182 CALL cxios_set_axis_unit & 183 (axis_hdl%daddr, unit_, len(unit_)) 167 184 ENDIF 168 185 169 186 IF (PRESENT(value_)) THEN 170 CALL cxios_set_axis_value(axis_hdl%daddr, value_, SHAPE(value_)) 187 CALL cxios_set_axis_value & 188 (axis_hdl%daddr, value_, SHAPE(value_)) 171 189 ENDIF 172 190 … … 199 217 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: value(:) 200 218 201 CALL xios(get_axis_handle)(axis_id,axis_hdl) 219 CALL xios(get_axis_handle) & 220 (axis_id,axis_hdl) 202 221 CALL xios(get_axis_attr_hdl_) & 203 222 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask & … … 264 283 265 284 IF (PRESENT(axis_ref_)) THEN 266 CALL cxios_get_axis_axis_ref(axis_hdl%daddr, axis_ref_, len(axis_ref_)) 285 CALL cxios_get_axis_axis_ref & 286 (axis_hdl%daddr, axis_ref_, len(axis_ref_)) 267 287 ENDIF 268 288 269 289 IF (PRESENT(begin_)) THEN 270 CALL cxios_get_axis_begin(axis_hdl%daddr, begin_) 290 CALL cxios_get_axis_begin & 291 (axis_hdl%daddr, begin_) 271 292 ENDIF 272 293 273 294 IF (PRESENT(bounds_)) THEN 274 CALL cxios_get_axis_bounds(axis_hdl%daddr, bounds_, SHAPE(bounds_)) 295 CALL cxios_get_axis_bounds & 296 (axis_hdl%daddr, bounds_, SHAPE(bounds_)) 275 297 ENDIF 276 298 277 299 IF (PRESENT(data_begin_)) THEN 278 CALL cxios_get_axis_data_begin(axis_hdl%daddr, data_begin_) 300 CALL cxios_get_axis_data_begin & 301 (axis_hdl%daddr, data_begin_) 279 302 ENDIF 280 303 281 304 IF (PRESENT(data_index_)) THEN 282 CALL cxios_get_axis_data_index(axis_hdl%daddr, data_index_, SHAPE(data_index_)) 305 CALL cxios_get_axis_data_index & 306 (axis_hdl%daddr, data_index_, SHAPE(data_index_)) 283 307 ENDIF 284 308 285 309 IF (PRESENT(data_n_)) THEN 286 CALL cxios_get_axis_data_n(axis_hdl%daddr, data_n_) 310 CALL cxios_get_axis_data_n & 311 (axis_hdl%daddr, data_n_) 287 312 ENDIF 288 313 289 314 IF (PRESENT(index_)) THEN 290 CALL cxios_get_axis_index(axis_hdl%daddr, index_, SHAPE(index_)) 315 CALL cxios_get_axis_index & 316 (axis_hdl%daddr, index_, SHAPE(index_)) 291 317 ENDIF 292 318 293 319 IF (PRESENT(long_name_)) THEN 294 CALL cxios_get_axis_long_name(axis_hdl%daddr, long_name_, len(long_name_)) 320 CALL cxios_get_axis_long_name & 321 (axis_hdl%daddr, long_name_, len(long_name_)) 295 322 ENDIF 296 323 297 324 IF (PRESENT(mask_)) THEN 298 325 ALLOCATE(mask__tmp(SIZE(mask_,1))) 299 CALL cxios_get_axis_mask(axis_hdl%daddr, mask__tmp, SHAPE(mask_)) 326 CALL cxios_get_axis_mask & 327 (axis_hdl%daddr, mask__tmp, SHAPE(mask_)) 300 328 mask_ = mask__tmp 301 329 ENDIF 302 330 303 331 IF (PRESENT(n_)) THEN 304 CALL cxios_get_axis_n(axis_hdl%daddr, n_) 332 CALL cxios_get_axis_n & 333 (axis_hdl%daddr, n_) 305 334 ENDIF 306 335 307 336 IF (PRESENT(n_distributed_partition_)) THEN 308 CALL cxios_get_axis_n_distributed_partition(axis_hdl%daddr, n_distributed_partition_) 337 CALL cxios_get_axis_n_distributed_partition & 338 (axis_hdl%daddr, n_distributed_partition_) 309 339 ENDIF 310 340 311 341 IF (PRESENT(n_glo_)) THEN 312 CALL cxios_get_axis_n_glo(axis_hdl%daddr, n_glo_) 342 CALL cxios_get_axis_n_glo & 343 (axis_hdl%daddr, n_glo_) 313 344 ENDIF 314 345 315 346 IF (PRESENT(name_)) THEN 316 CALL cxios_get_axis_name(axis_hdl%daddr, name_, len(name_)) 347 CALL cxios_get_axis_name & 348 (axis_hdl%daddr, name_, len(name_)) 317 349 ENDIF 318 350 319 351 IF (PRESENT(positive_)) THEN 320 CALL cxios_get_axis_positive(axis_hdl%daddr, positive_, len(positive_)) 352 CALL cxios_get_axis_positive & 353 (axis_hdl%daddr, positive_, len(positive_)) 321 354 ENDIF 322 355 323 356 IF (PRESENT(standard_name_)) THEN 324 CALL cxios_get_axis_standard_name(axis_hdl%daddr, standard_name_, len(standard_name_)) 357 CALL cxios_get_axis_standard_name & 358 (axis_hdl%daddr, standard_name_, len(standard_name_)) 325 359 ENDIF 326 360 327 361 IF (PRESENT(unit_)) THEN 328 CALL cxios_get_axis_unit(axis_hdl%daddr, unit_, len(unit_)) 362 CALL cxios_get_axis_unit & 363 (axis_hdl%daddr, unit_, len(unit_)) 329 364 ENDIF 330 365 331 366 IF (PRESENT(value_)) THEN 332 CALL cxios_get_axis_value(axis_hdl%daddr, value_, SHAPE(value_)) 367 CALL cxios_get_axis_value & 368 (axis_hdl%daddr, value_, SHAPE(value_)) 333 369 ENDIF 334 370 … … 377 413 LOGICAL(KIND=C_BOOL) :: value_tmp 378 414 379 CALL xios(get_axis_handle)(axis_id,axis_hdl) 415 CALL xios(get_axis_handle) & 416 (axis_id,axis_hdl) 380 417 CALL xios(is_defined_axis_attr_hdl_) & 381 418 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask & … … 474 511 475 512 IF (PRESENT(axis_ref_)) THEN 476 axis_ref__tmp = cxios_is_defined_axis_axis_ref(axis_hdl%daddr) 513 axis_ref__tmp = cxios_is_defined_axis_axis_ref & 514 (axis_hdl%daddr) 477 515 axis_ref_ = axis_ref__tmp 478 516 ENDIF 479 517 480 518 IF (PRESENT(begin_)) THEN 481 begin__tmp = cxios_is_defined_axis_begin(axis_hdl%daddr) 519 begin__tmp = cxios_is_defined_axis_begin & 520 (axis_hdl%daddr) 482 521 begin_ = begin__tmp 483 522 ENDIF 484 523 485 524 IF (PRESENT(bounds_)) THEN 486 bounds__tmp = cxios_is_defined_axis_bounds(axis_hdl%daddr) 525 bounds__tmp = cxios_is_defined_axis_bounds & 526 (axis_hdl%daddr) 487 527 bounds_ = bounds__tmp 488 528 ENDIF 489 529 490 530 IF (PRESENT(data_begin_)) THEN 491 data_begin__tmp = cxios_is_defined_axis_data_begin(axis_hdl%daddr) 531 data_begin__tmp = cxios_is_defined_axis_data_begin & 532 (axis_hdl%daddr) 492 533 data_begin_ = data_begin__tmp 493 534 ENDIF 494 535 495 536 IF (PRESENT(data_index_)) THEN 496 data_index__tmp = cxios_is_defined_axis_data_index(axis_hdl%daddr) 537 data_index__tmp = cxios_is_defined_axis_data_index & 538 (axis_hdl%daddr) 497 539 data_index_ = data_index__tmp 498 540 ENDIF 499 541 500 542 IF (PRESENT(data_n_)) THEN 501 data_n__tmp = cxios_is_defined_axis_data_n(axis_hdl%daddr) 543 data_n__tmp = cxios_is_defined_axis_data_n & 544 (axis_hdl%daddr) 502 545 data_n_ = data_n__tmp 503 546 ENDIF 504 547 505 548 IF (PRESENT(index_)) THEN 506 index__tmp = cxios_is_defined_axis_index(axis_hdl%daddr) 549 index__tmp = cxios_is_defined_axis_index & 550 (axis_hdl%daddr) 507 551 index_ = index__tmp 508 552 ENDIF 509 553 510 554 IF (PRESENT(long_name_)) THEN 511 long_name__tmp = cxios_is_defined_axis_long_name(axis_hdl%daddr) 555 long_name__tmp = cxios_is_defined_axis_long_name & 556 (axis_hdl%daddr) 512 557 long_name_ = long_name__tmp 513 558 ENDIF 514 559 515 560 IF (PRESENT(mask_)) THEN 516 mask__tmp = cxios_is_defined_axis_mask(axis_hdl%daddr) 561 mask__tmp = cxios_is_defined_axis_mask & 562 (axis_hdl%daddr) 517 563 mask_ = mask__tmp 518 564 ENDIF 519 565 520 566 IF (PRESENT(n_)) THEN 521 n__tmp = cxios_is_defined_axis_n(axis_hdl%daddr) 567 n__tmp = cxios_is_defined_axis_n & 568 (axis_hdl%daddr) 522 569 n_ = n__tmp 523 570 ENDIF 524 571 525 572 IF (PRESENT(n_distributed_partition_)) THEN 526 n_distributed_partition__tmp = cxios_is_defined_axis_n_distributed_partition(axis_hdl%daddr) 573 n_distributed_partition__tmp = cxios_is_defined_axis_n_distributed_partition & 574 (axis_hdl%daddr) 527 575 n_distributed_partition_ = n_distributed_partition__tmp 528 576 ENDIF 529 577 530 578 IF (PRESENT(n_glo_)) THEN 531 n_glo__tmp = cxios_is_defined_axis_n_glo(axis_hdl%daddr) 579 n_glo__tmp = cxios_is_defined_axis_n_glo & 580 (axis_hdl%daddr) 532 581 n_glo_ = n_glo__tmp 533 582 ENDIF 534 583 535 584 IF (PRESENT(name_)) THEN 536 name__tmp = cxios_is_defined_axis_name(axis_hdl%daddr) 585 name__tmp = cxios_is_defined_axis_name & 586 (axis_hdl%daddr) 537 587 name_ = name__tmp 538 588 ENDIF 539 589 540 590 IF (PRESENT(positive_)) THEN 541 positive__tmp = cxios_is_defined_axis_positive(axis_hdl%daddr) 591 positive__tmp = cxios_is_defined_axis_positive & 592 (axis_hdl%daddr) 542 593 positive_ = positive__tmp 543 594 ENDIF 544 595 545 596 IF (PRESENT(standard_name_)) THEN 546 standard_name__tmp = cxios_is_defined_axis_standard_name(axis_hdl%daddr) 597 standard_name__tmp = cxios_is_defined_axis_standard_name & 598 (axis_hdl%daddr) 547 599 standard_name_ = standard_name__tmp 548 600 ENDIF 549 601 550 602 IF (PRESENT(unit_)) THEN 551 unit__tmp = cxios_is_defined_axis_unit(axis_hdl%daddr) 603 unit__tmp = cxios_is_defined_axis_unit & 604 (axis_hdl%daddr) 552 605 unit_ = unit__tmp 553 606 ENDIF 554 607 555 608 IF (PRESENT(value_)) THEN 556 value__tmp = cxios_is_defined_axis_value(axis_hdl%daddr) 609 value__tmp = cxios_is_defined_axis_value & 610 (axis_hdl%daddr) 557 611 value_ = value__tmp 558 612 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.