Changeset 581 for XIOS/trunk/src/interface/fortran_attr/iaxis_attr.F90
- Timestamp:
- 03/24/15 11:21:45 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/fortran_attr/iaxis_attr.F90
r556 r581 8 8 USE iaxis 9 9 USE axis_interface_attr 10 10 11 11 CONTAINS 12 12 13 13 SUBROUTINE xios(set_axis_attr) & 14 14 ( axis_id, axis_ref, data_begin, data_index, data_n, ibegin, long_name, mask, name, ni, positive & 15 15 , size, standard_name, unit, value, zoom_begin, zoom_end, zoom_size ) 16 16 17 17 IMPLICIT NONE 18 18 TYPE(txios(axis)) :: axis_hdl … … 36 36 INTEGER , OPTIONAL, INTENT(IN) :: zoom_end 37 37 INTEGER , OPTIONAL, INTENT(IN) :: zoom_size 38 38 39 39 CALL xios(get_axis_handle)(axis_id,axis_hdl) 40 40 CALL xios(set_axis_attr_hdl_) & 41 41 ( axis_hdl, axis_ref, data_begin, data_index, data_n, ibegin, long_name, mask, name, ni, positive & 42 42 , size, standard_name, unit, value, zoom_begin, zoom_end, zoom_size ) 43 43 44 44 END SUBROUTINE xios(set_axis_attr) 45 45 46 46 SUBROUTINE xios(set_axis_attr_hdl) & 47 47 ( axis_hdl, axis_ref, data_begin, data_index, data_n, ibegin, long_name, mask, name, ni, positive & 48 48 , size, standard_name, unit, value, zoom_begin, zoom_end, zoom_size ) 49 49 50 50 IMPLICIT NONE 51 51 TYPE(txios(axis)) , INTENT(IN) :: axis_hdl … … 68 68 INTEGER , OPTIONAL, INTENT(IN) :: zoom_end 69 69 INTEGER , OPTIONAL, INTENT(IN) :: zoom_size 70 70 71 71 CALL xios(set_axis_attr_hdl_) & 72 72 ( axis_hdl, axis_ref, data_begin, data_index, data_n, ibegin, long_name, mask, name, ni, positive & 73 73 , size, standard_name, unit, value, zoom_begin, zoom_end, zoom_size ) 74 74 75 75 END SUBROUTINE xios(set_axis_attr_hdl) 76 76 77 77 SUBROUTINE xios(set_axis_attr_hdl_) & 78 78 ( axis_hdl, axis_ref_, data_begin_, data_index_, data_n_, ibegin_, long_name_, mask_, name_ & 79 79 , ni_, positive_, size_, standard_name_, unit_, value_, zoom_begin_, zoom_end_, zoom_size_ ) 80 80 81 81 IMPLICIT NONE 82 82 TYPE(txios(axis)) , INTENT(IN) :: axis_hdl … … 99 99 INTEGER , OPTIONAL, INTENT(IN) :: zoom_end_ 100 100 INTEGER , OPTIONAL, INTENT(IN) :: zoom_size_ 101 101 102 102 IF (PRESENT(axis_ref_)) THEN 103 103 CALL cxios_set_axis_axis_ref(axis_hdl%daddr, axis_ref_, len(axis_ref_)) 104 104 ENDIF 105 105 106 106 IF (PRESENT(data_begin_)) THEN 107 107 CALL cxios_set_axis_data_begin(axis_hdl%daddr, data_begin_) 108 108 ENDIF 109 109 110 110 IF (PRESENT(data_index_)) THEN 111 CALL cxios_set_axis_data_index(axis_hdl%daddr, data_index_, size(data_index_,1))112 ENDIF 113 111 CALL cxios_set_axis_data_index(axis_hdl%daddr, data_index_, size(data_index_,1)) 112 ENDIF 113 114 114 IF (PRESENT(data_n_)) THEN 115 115 CALL cxios_set_axis_data_n(axis_hdl%daddr, data_n_) 116 116 ENDIF 117 117 118 118 IF (PRESENT(ibegin_)) THEN 119 119 CALL cxios_set_axis_ibegin(axis_hdl%daddr, ibegin_) 120 120 ENDIF 121 121 122 122 IF (PRESENT(long_name_)) THEN 123 123 CALL cxios_set_axis_long_name(axis_hdl%daddr, long_name_, len(long_name_)) 124 124 ENDIF 125 125 126 126 IF (PRESENT(mask_)) THEN 127 127 ALLOCATE(mask__tmp(size(mask_,1))) 128 mask__tmp =mask_129 CALL cxios_set_axis_mask(axis_hdl%daddr, mask__tmp, size(mask_,1))130 ENDIF 131 128 mask__tmp = mask_ 129 CALL cxios_set_axis_mask(axis_hdl%daddr, mask__tmp, size(mask_,1)) 130 ENDIF 131 132 132 IF (PRESENT(name_)) THEN 133 133 CALL cxios_set_axis_name(axis_hdl%daddr, name_, len(name_)) 134 134 ENDIF 135 135 136 136 IF (PRESENT(ni_)) THEN 137 137 CALL cxios_set_axis_ni(axis_hdl%daddr, ni_) 138 138 ENDIF 139 139 140 140 IF (PRESENT(positive_)) THEN 141 141 CALL cxios_set_axis_positive(axis_hdl%daddr, positive_, len(positive_)) 142 142 ENDIF 143 143 144 144 IF (PRESENT(size_)) THEN 145 145 CALL cxios_set_axis_size(axis_hdl%daddr, size_) 146 146 ENDIF 147 147 148 148 IF (PRESENT(standard_name_)) THEN 149 149 CALL cxios_set_axis_standard_name(axis_hdl%daddr, standard_name_, len(standard_name_)) 150 150 ENDIF 151 151 152 152 IF (PRESENT(unit_)) THEN 153 153 CALL cxios_set_axis_unit(axis_hdl%daddr, unit_, len(unit_)) 154 154 ENDIF 155 155 156 156 IF (PRESENT(value_)) THEN 157 CALL cxios_set_axis_value(axis_hdl%daddr, value_, size(value_,1))158 ENDIF 159 157 CALL cxios_set_axis_value(axis_hdl%daddr, value_, size(value_,1)) 158 ENDIF 159 160 160 IF (PRESENT(zoom_begin_)) THEN 161 161 CALL cxios_set_axis_zoom_begin(axis_hdl%daddr, zoom_begin_) 162 162 ENDIF 163 163 164 164 IF (PRESENT(zoom_end_)) THEN 165 165 CALL cxios_set_axis_zoom_end(axis_hdl%daddr, zoom_end_) 166 166 ENDIF 167 167 168 168 IF (PRESENT(zoom_size_)) THEN 169 169 CALL cxios_set_axis_zoom_size(axis_hdl%daddr, zoom_size_) 170 170 ENDIF 171 172 173 171 174 172 END SUBROUTINE xios(set_axis_attr_hdl_) 175 173 176 174 SUBROUTINE xios(get_axis_attr) & 177 175 ( axis_id, axis_ref, data_begin, data_index, data_n, ibegin, long_name, mask, name, ni, positive & 178 176 , size, standard_name, unit, value, zoom_begin, zoom_end, zoom_size ) 179 177 180 178 IMPLICIT NONE 181 179 TYPE(txios(axis)) :: axis_hdl … … 199 197 INTEGER , OPTIONAL, INTENT(OUT) :: zoom_end 200 198 INTEGER , OPTIONAL, INTENT(OUT) :: zoom_size 201 199 202 200 CALL xios(get_axis_handle)(axis_id,axis_hdl) 203 201 CALL xios(get_axis_attr_hdl_) & 204 202 ( axis_hdl, axis_ref, data_begin, data_index, data_n, ibegin, long_name, mask, name, ni, positive & 205 203 , size, standard_name, unit, value, zoom_begin, zoom_end, zoom_size ) 206 204 207 205 END SUBROUTINE xios(get_axis_attr) 208 206 209 207 SUBROUTINE xios(get_axis_attr_hdl) & 210 208 ( axis_hdl, axis_ref, data_begin, data_index, data_n, ibegin, long_name, mask, name, ni, positive & 211 209 , size, standard_name, unit, value, zoom_begin, zoom_end, zoom_size ) 212 210 213 211 IMPLICIT NONE 214 212 TYPE(txios(axis)) , INTENT(IN) :: axis_hdl … … 231 229 INTEGER , OPTIONAL, INTENT(OUT) :: zoom_end 232 230 INTEGER , OPTIONAL, INTENT(OUT) :: zoom_size 233 231 234 232 CALL xios(get_axis_attr_hdl_) & 235 233 ( axis_hdl, axis_ref, data_begin, data_index, data_n, ibegin, long_name, mask, name, ni, positive & 236 234 , size, standard_name, unit, value, zoom_begin, zoom_end, zoom_size ) 237 235 238 236 END SUBROUTINE xios(get_axis_attr_hdl) 239 237 240 238 SUBROUTINE xios(get_axis_attr_hdl_) & 241 239 ( axis_hdl, axis_ref_, data_begin_, data_index_, data_n_, ibegin_, long_name_, mask_, name_ & 242 240 , ni_, positive_, size_, standard_name_, unit_, value_, zoom_begin_, zoom_end_, zoom_size_ ) 243 241 244 242 IMPLICIT NONE 245 243 TYPE(txios(axis)) , INTENT(IN) :: axis_hdl … … 262 260 INTEGER , OPTIONAL, INTENT(OUT) :: zoom_end_ 263 261 INTEGER , OPTIONAL, INTENT(OUT) :: zoom_size_ 264 262 265 263 IF (PRESENT(axis_ref_)) THEN 266 264 CALL cxios_get_axis_axis_ref(axis_hdl%daddr, axis_ref_, len(axis_ref_)) 267 265 ENDIF 268 266 269 267 IF (PRESENT(data_begin_)) THEN 270 268 CALL cxios_get_axis_data_begin(axis_hdl%daddr, data_begin_) 271 269 ENDIF 272 270 273 271 IF (PRESENT(data_index_)) THEN 274 CALL cxios_get_axis_data_index(axis_hdl%daddr, data_index_, size(data_index_,1))275 ENDIF 276 272 CALL cxios_get_axis_data_index(axis_hdl%daddr, data_index_, size(data_index_,1)) 273 ENDIF 274 277 275 IF (PRESENT(data_n_)) THEN 278 276 CALL cxios_get_axis_data_n(axis_hdl%daddr, data_n_) 279 277 ENDIF 280 278 281 279 IF (PRESENT(ibegin_)) THEN 282 280 CALL cxios_get_axis_ibegin(axis_hdl%daddr, ibegin_) 283 281 ENDIF 284 282 285 283 IF (PRESENT(long_name_)) THEN 286 284 CALL cxios_get_axis_long_name(axis_hdl%daddr, long_name_, len(long_name_)) 287 285 ENDIF 288 286 289 287 IF (PRESENT(mask_)) THEN 290 288 ALLOCATE(mask__tmp(size(mask_,1))) 291 CALL cxios_get_axis_mask(axis_hdl%daddr, mask__tmp, size(mask_,1))292 mask_ =mask__tmp293 ENDIF 294 289 CALL cxios_get_axis_mask(axis_hdl%daddr, mask__tmp, size(mask_,1)) 290 mask_ = mask__tmp 291 ENDIF 292 295 293 IF (PRESENT(name_)) THEN 296 294 CALL cxios_get_axis_name(axis_hdl%daddr, name_, len(name_)) 297 295 ENDIF 298 296 299 297 IF (PRESENT(ni_)) THEN 300 298 CALL cxios_get_axis_ni(axis_hdl%daddr, ni_) 301 299 ENDIF 302 300 303 301 IF (PRESENT(positive_)) THEN 304 302 CALL cxios_get_axis_positive(axis_hdl%daddr, positive_, len(positive_)) 305 303 ENDIF 306 304 307 305 IF (PRESENT(size_)) THEN 308 306 CALL cxios_get_axis_size(axis_hdl%daddr, size_) 309 307 ENDIF 310 308 311 309 IF (PRESENT(standard_name_)) THEN 312 310 CALL cxios_get_axis_standard_name(axis_hdl%daddr, standard_name_, len(standard_name_)) 313 311 ENDIF 314 312 315 313 IF (PRESENT(unit_)) THEN 316 314 CALL cxios_get_axis_unit(axis_hdl%daddr, unit_, len(unit_)) 317 315 ENDIF 318 316 319 317 IF (PRESENT(value_)) THEN 320 CALL cxios_get_axis_value(axis_hdl%daddr, value_, size(value_,1))321 ENDIF 322 318 CALL cxios_get_axis_value(axis_hdl%daddr, value_, size(value_,1)) 319 ENDIF 320 323 321 IF (PRESENT(zoom_begin_)) THEN 324 322 CALL cxios_get_axis_zoom_begin(axis_hdl%daddr, zoom_begin_) 325 323 ENDIF 326 324 327 325 IF (PRESENT(zoom_end_)) THEN 328 326 CALL cxios_get_axis_zoom_end(axis_hdl%daddr, zoom_end_) 329 327 ENDIF 330 328 331 329 IF (PRESENT(zoom_size_)) THEN 332 330 CALL cxios_get_axis_zoom_size(axis_hdl%daddr, zoom_size_) 333 331 ENDIF 334 335 336 332 337 333 END SUBROUTINE xios(get_axis_attr_hdl_) 338 334 339 335 SUBROUTINE xios(is_defined_axis_attr) & 340 336 ( axis_id, axis_ref, data_begin, data_index, data_n, ibegin, long_name, mask, name, ni, positive & 341 337 , size, standard_name, unit, value, zoom_begin, zoom_end, zoom_size ) 342 338 343 339 IMPLICIT NONE 344 340 TYPE(txios(axis)) :: axis_hdl … … 378 374 LOGICAL, OPTIONAL, INTENT(OUT) :: zoom_size 379 375 LOGICAL(KIND=C_BOOL) :: zoom_size_tmp 380 376 381 377 CALL xios(get_axis_handle)(axis_id,axis_hdl) 382 378 CALL xios(is_defined_axis_attr_hdl_) & 383 379 ( axis_hdl, axis_ref, data_begin, data_index, data_n, ibegin, long_name, mask, name, ni, positive & 384 380 , size, standard_name, unit, value, zoom_begin, zoom_end, zoom_size ) 385 381 386 382 END SUBROUTINE xios(is_defined_axis_attr) 387 383 388 384 SUBROUTINE xios(is_defined_axis_attr_hdl) & 389 385 ( axis_hdl, axis_ref, data_begin, data_index, data_n, ibegin, long_name, mask, name, ni, positive & 390 386 , size, standard_name, unit, value, zoom_begin, zoom_end, zoom_size ) 391 387 392 388 IMPLICIT NONE 393 389 TYPE(txios(axis)) , INTENT(IN) :: axis_hdl … … 426 422 LOGICAL, OPTIONAL, INTENT(OUT) :: zoom_size 427 423 LOGICAL(KIND=C_BOOL) :: zoom_size_tmp 428 424 429 425 CALL xios(is_defined_axis_attr_hdl_) & 430 426 ( axis_hdl, axis_ref, data_begin, data_index, data_n, ibegin, long_name, mask, name, ni, positive & 431 427 , size, standard_name, unit, value, zoom_begin, zoom_end, zoom_size ) 432 428 433 429 END SUBROUTINE xios(is_defined_axis_attr_hdl) 434 430 435 431 SUBROUTINE xios(is_defined_axis_attr_hdl_) & 436 432 ( axis_hdl, axis_ref_, data_begin_, data_index_, data_n_, ibegin_, long_name_, mask_, name_ & 437 433 , ni_, positive_, size_, standard_name_, unit_, value_, zoom_begin_, zoom_end_, zoom_size_ ) 438 434 439 435 IMPLICIT NONE 440 436 TYPE(txios(axis)) , INTENT(IN) :: axis_hdl … … 473 469 LOGICAL, OPTIONAL, INTENT(OUT) :: zoom_size_ 474 470 LOGICAL(KIND=C_BOOL) :: zoom_size__tmp 475 471 476 472 IF (PRESENT(axis_ref_)) THEN 477 axis_ref__tmp =cxios_is_defined_axis_axis_ref(axis_hdl%daddr)478 axis_ref_ =axis_ref__tmp479 ENDIF 480 473 axis_ref__tmp = cxios_is_defined_axis_axis_ref(axis_hdl%daddr) 474 axis_ref_ = axis_ref__tmp 475 ENDIF 476 481 477 IF (PRESENT(data_begin_)) THEN 482 data_begin__tmp =cxios_is_defined_axis_data_begin(axis_hdl%daddr)483 data_begin_ =data_begin__tmp484 ENDIF 485 478 data_begin__tmp = cxios_is_defined_axis_data_begin(axis_hdl%daddr) 479 data_begin_ = data_begin__tmp 480 ENDIF 481 486 482 IF (PRESENT(data_index_)) THEN 487 data_index__tmp =cxios_is_defined_axis_data_index(axis_hdl%daddr)488 data_index_ =data_index__tmp489 ENDIF 490 483 data_index__tmp = cxios_is_defined_axis_data_index(axis_hdl%daddr) 484 data_index_ = data_index__tmp 485 ENDIF 486 491 487 IF (PRESENT(data_n_)) THEN 492 data_n__tmp =cxios_is_defined_axis_data_n(axis_hdl%daddr)493 data_n_ =data_n__tmp494 ENDIF 495 488 data_n__tmp = cxios_is_defined_axis_data_n(axis_hdl%daddr) 489 data_n_ = data_n__tmp 490 ENDIF 491 496 492 IF (PRESENT(ibegin_)) THEN 497 ibegin__tmp =cxios_is_defined_axis_ibegin(axis_hdl%daddr)498 ibegin_ =ibegin__tmp499 ENDIF 500 493 ibegin__tmp = cxios_is_defined_axis_ibegin(axis_hdl%daddr) 494 ibegin_ = ibegin__tmp 495 ENDIF 496 501 497 IF (PRESENT(long_name_)) THEN 502 long_name__tmp =cxios_is_defined_axis_long_name(axis_hdl%daddr)503 long_name_ =long_name__tmp504 ENDIF 505 498 long_name__tmp = cxios_is_defined_axis_long_name(axis_hdl%daddr) 499 long_name_ = long_name__tmp 500 ENDIF 501 506 502 IF (PRESENT(mask_)) THEN 507 mask__tmp =cxios_is_defined_axis_mask(axis_hdl%daddr)508 mask_ =mask__tmp509 ENDIF 510 503 mask__tmp = cxios_is_defined_axis_mask(axis_hdl%daddr) 504 mask_ = mask__tmp 505 ENDIF 506 511 507 IF (PRESENT(name_)) THEN 512 name__tmp =cxios_is_defined_axis_name(axis_hdl%daddr)513 name_ =name__tmp514 ENDIF 515 508 name__tmp = cxios_is_defined_axis_name(axis_hdl%daddr) 509 name_ = name__tmp 510 ENDIF 511 516 512 IF (PRESENT(ni_)) THEN 517 ni__tmp =cxios_is_defined_axis_ni(axis_hdl%daddr)518 ni_ =ni__tmp519 ENDIF 520 513 ni__tmp = cxios_is_defined_axis_ni(axis_hdl%daddr) 514 ni_ = ni__tmp 515 ENDIF 516 521 517 IF (PRESENT(positive_)) THEN 522 positive__tmp =cxios_is_defined_axis_positive(axis_hdl%daddr)523 positive_ =positive__tmp524 ENDIF 525 518 positive__tmp = cxios_is_defined_axis_positive(axis_hdl%daddr) 519 positive_ = positive__tmp 520 ENDIF 521 526 522 IF (PRESENT(size_)) THEN 527 size__tmp =cxios_is_defined_axis_size(axis_hdl%daddr)528 size_ =size__tmp529 ENDIF 530 523 size__tmp = cxios_is_defined_axis_size(axis_hdl%daddr) 524 size_ = size__tmp 525 ENDIF 526 531 527 IF (PRESENT(standard_name_)) THEN 532 standard_name__tmp =cxios_is_defined_axis_standard_name(axis_hdl%daddr)533 standard_name_ =standard_name__tmp534 ENDIF 535 528 standard_name__tmp = cxios_is_defined_axis_standard_name(axis_hdl%daddr) 529 standard_name_ = standard_name__tmp 530 ENDIF 531 536 532 IF (PRESENT(unit_)) THEN 537 unit__tmp =cxios_is_defined_axis_unit(axis_hdl%daddr)538 unit_ =unit__tmp539 ENDIF 540 533 unit__tmp = cxios_is_defined_axis_unit(axis_hdl%daddr) 534 unit_ = unit__tmp 535 ENDIF 536 541 537 IF (PRESENT(value_)) THEN 542 value__tmp =cxios_is_defined_axis_value(axis_hdl%daddr)543 value_ =value__tmp544 ENDIF 545 538 value__tmp = cxios_is_defined_axis_value(axis_hdl%daddr) 539 value_ = value__tmp 540 ENDIF 541 546 542 IF (PRESENT(zoom_begin_)) THEN 547 zoom_begin__tmp =cxios_is_defined_axis_zoom_begin(axis_hdl%daddr)548 zoom_begin_ =zoom_begin__tmp549 ENDIF 550 543 zoom_begin__tmp = cxios_is_defined_axis_zoom_begin(axis_hdl%daddr) 544 zoom_begin_ = zoom_begin__tmp 545 ENDIF 546 551 547 IF (PRESENT(zoom_end_)) THEN 552 zoom_end__tmp =cxios_is_defined_axis_zoom_end(axis_hdl%daddr)553 zoom_end_ =zoom_end__tmp554 ENDIF 555 548 zoom_end__tmp = cxios_is_defined_axis_zoom_end(axis_hdl%daddr) 549 zoom_end_ = zoom_end__tmp 550 ENDIF 551 556 552 IF (PRESENT(zoom_size_)) THEN 557 zoom_size__tmp=cxios_is_defined_axis_zoom_size(axis_hdl%daddr) 558 zoom_size_=zoom_size__tmp 559 ENDIF 560 561 562 553 zoom_size__tmp = cxios_is_defined_axis_zoom_size(axis_hdl%daddr) 554 zoom_size_ = zoom_size__tmp 555 ENDIF 556 563 557 END SUBROUTINE xios(is_defined_axis_attr_hdl_) 564 558 565 559 END MODULE iaxis_attr
Note: See TracChangeset
for help on using the changeset viewer.