Changeset 817 for XIOS/trunk/src/interface/fortran_attr/iaxis_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/iaxis_attr.F90
r779 r817 12 12 13 13 SUBROUTINE xios(set_axis_attr) & 14 ( axis_id, axis_ref, begin, bounds, data_begin, data_index, data_n, long_name, mask, n, n_distributed_partition &15 , n_ glo, name, positive, standard_name, unit, value )14 ( axis_id, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask, n & 15 , n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 16 16 17 17 IMPLICIT NONE … … 24 24 INTEGER , OPTIONAL, INTENT(IN) :: data_index(:) 25 25 INTEGER , OPTIONAL, INTENT(IN) :: data_n 26 INTEGER , OPTIONAL, INTENT(IN) :: index(:) 26 27 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: long_name 27 28 LOGICAL , OPTIONAL, INTENT(IN) :: mask(:) … … 38 39 CALL xios(get_axis_handle)(axis_id,axis_hdl) 39 40 CALL xios(set_axis_attr_hdl_) & 40 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, long_name, mask, n, n_distributed_partition&41 , n _glo, name, positive, standard_name, unit, value )41 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask & 42 , n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 42 43 43 44 END SUBROUTINE xios(set_axis_attr) 44 45 45 46 SUBROUTINE xios(set_axis_attr_hdl) & 46 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, long_name, mask, n, n_distributed_partition&47 , n _glo, name, positive, standard_name, unit, value )47 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask & 48 , n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 48 49 49 50 IMPLICIT NONE … … 55 56 INTEGER , OPTIONAL, INTENT(IN) :: data_index(:) 56 57 INTEGER , OPTIONAL, INTENT(IN) :: data_n 58 INTEGER , OPTIONAL, INTENT(IN) :: index(:) 57 59 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: long_name 58 60 LOGICAL , OPTIONAL, INTENT(IN) :: mask(:) … … 68 70 69 71 CALL xios(set_axis_attr_hdl_) & 70 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, long_name, mask, n, n_distributed_partition&71 , n _glo, name, positive, standard_name, unit, value )72 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask & 73 , n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 72 74 73 75 END SUBROUTINE xios(set_axis_attr_hdl) 74 76 75 77 SUBROUTINE xios(set_axis_attr_hdl_) & 76 ( axis_hdl, axis_ref_, begin_, bounds_, data_begin_, data_index_, data_n_, long_name_, mask_ & 77 , n_, n_distributed_partition_, n_glo_, name_, positive_, standard_name_, unit_, value_ ) 78 ( axis_hdl, axis_ref_, begin_, bounds_, data_begin_, data_index_, data_n_, index_, long_name_ & 79 , mask_, n_, n_distributed_partition_, n_glo_, name_, positive_, standard_name_, unit_, value_ & 80 ) 78 81 79 82 IMPLICIT NONE … … 85 88 INTEGER , OPTIONAL, INTENT(IN) :: data_index_(:) 86 89 INTEGER , OPTIONAL, INTENT(IN) :: data_n_ 90 INTEGER , OPTIONAL, INTENT(IN) :: index_(:) 87 91 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: long_name_ 88 92 LOGICAL , OPTIONAL, INTENT(IN) :: mask_(:) … … 121 125 ENDIF 122 126 127 IF (PRESENT(index_)) THEN 128 CALL cxios_set_axis_index(axis_hdl%daddr, index_, SHAPE(index_)) 129 ENDIF 130 123 131 IF (PRESENT(long_name_)) THEN 124 132 CALL cxios_set_axis_long_name(axis_hdl%daddr, long_name_, len(long_name_)) … … 166 174 167 175 SUBROUTINE xios(get_axis_attr) & 168 ( axis_id, axis_ref, begin, bounds, data_begin, data_index, data_n, long_name, mask, n, n_distributed_partition &169 , n_ glo, name, positive, standard_name, unit, value )176 ( axis_id, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask, n & 177 , n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 170 178 171 179 IMPLICIT NONE … … 178 186 INTEGER , OPTIONAL, INTENT(OUT) :: data_index(:) 179 187 INTEGER , OPTIONAL, INTENT(OUT) :: data_n 188 INTEGER , OPTIONAL, INTENT(OUT) :: index(:) 180 189 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: long_name 181 190 LOGICAL , OPTIONAL, INTENT(OUT) :: mask(:) … … 192 201 CALL xios(get_axis_handle)(axis_id,axis_hdl) 193 202 CALL xios(get_axis_attr_hdl_) & 194 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, long_name, mask, n, n_distributed_partition&195 , n _glo, name, positive, standard_name, unit, value )203 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask & 204 , n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 196 205 197 206 END SUBROUTINE xios(get_axis_attr) 198 207 199 208 SUBROUTINE xios(get_axis_attr_hdl) & 200 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, long_name, mask, n, n_distributed_partition&201 , n _glo, name, positive, standard_name, unit, value )209 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask & 210 , n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 202 211 203 212 IMPLICIT NONE … … 209 218 INTEGER , OPTIONAL, INTENT(OUT) :: data_index(:) 210 219 INTEGER , OPTIONAL, INTENT(OUT) :: data_n 220 INTEGER , OPTIONAL, INTENT(OUT) :: index(:) 211 221 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: long_name 212 222 LOGICAL , OPTIONAL, INTENT(OUT) :: mask(:) … … 222 232 223 233 CALL xios(get_axis_attr_hdl_) & 224 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, long_name, mask, n, n_distributed_partition&225 , n _glo, name, positive, standard_name, unit, value )234 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask & 235 , n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 226 236 227 237 END SUBROUTINE xios(get_axis_attr_hdl) 228 238 229 239 SUBROUTINE xios(get_axis_attr_hdl_) & 230 ( axis_hdl, axis_ref_, begin_, bounds_, data_begin_, data_index_, data_n_, long_name_, mask_ & 231 , n_, n_distributed_partition_, n_glo_, name_, positive_, standard_name_, unit_, value_ ) 240 ( axis_hdl, axis_ref_, begin_, bounds_, data_begin_, data_index_, data_n_, index_, long_name_ & 241 , mask_, n_, n_distributed_partition_, n_glo_, name_, positive_, standard_name_, unit_, value_ & 242 ) 232 243 233 244 IMPLICIT NONE … … 239 250 INTEGER , OPTIONAL, INTENT(OUT) :: data_index_(:) 240 251 INTEGER , OPTIONAL, INTENT(OUT) :: data_n_ 252 INTEGER , OPTIONAL, INTENT(OUT) :: index_(:) 241 253 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: long_name_ 242 254 LOGICAL , OPTIONAL, INTENT(OUT) :: mask_(:) … … 275 287 ENDIF 276 288 289 IF (PRESENT(index_)) THEN 290 CALL cxios_get_axis_index(axis_hdl%daddr, index_, SHAPE(index_)) 291 ENDIF 292 277 293 IF (PRESENT(long_name_)) THEN 278 294 CALL cxios_get_axis_long_name(axis_hdl%daddr, long_name_, len(long_name_)) … … 320 336 321 337 SUBROUTINE xios(is_defined_axis_attr) & 322 ( axis_id, axis_ref, begin, bounds, data_begin, data_index, data_n, long_name, mask, n, n_distributed_partition &323 , n_ glo, name, positive, standard_name, unit, value )338 ( axis_id, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask, n & 339 , n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 324 340 325 341 IMPLICIT NONE … … 338 354 LOGICAL, OPTIONAL, INTENT(OUT) :: data_n 339 355 LOGICAL(KIND=C_BOOL) :: data_n_tmp 356 LOGICAL, OPTIONAL, INTENT(OUT) :: index 357 LOGICAL(KIND=C_BOOL) :: index_tmp 340 358 LOGICAL, OPTIONAL, INTENT(OUT) :: long_name 341 359 LOGICAL(KIND=C_BOOL) :: long_name_tmp … … 361 379 CALL xios(get_axis_handle)(axis_id,axis_hdl) 362 380 CALL xios(is_defined_axis_attr_hdl_) & 363 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, long_name, mask, n, n_distributed_partition&364 , n _glo, name, positive, standard_name, unit, value )381 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask & 382 , n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 365 383 366 384 END SUBROUTINE xios(is_defined_axis_attr) 367 385 368 386 SUBROUTINE xios(is_defined_axis_attr_hdl) & 369 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, long_name, mask, n, n_distributed_partition&370 , n _glo, name, positive, standard_name, unit, value )387 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask & 388 , n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 371 389 372 390 IMPLICIT NONE … … 384 402 LOGICAL, OPTIONAL, INTENT(OUT) :: data_n 385 403 LOGICAL(KIND=C_BOOL) :: data_n_tmp 404 LOGICAL, OPTIONAL, INTENT(OUT) :: index 405 LOGICAL(KIND=C_BOOL) :: index_tmp 386 406 LOGICAL, OPTIONAL, INTENT(OUT) :: long_name 387 407 LOGICAL(KIND=C_BOOL) :: long_name_tmp … … 406 426 407 427 CALL xios(is_defined_axis_attr_hdl_) & 408 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, long_name, mask, n, n_distributed_partition&409 , n _glo, name, positive, standard_name, unit, value )428 ( axis_hdl, axis_ref, begin, bounds, data_begin, data_index, data_n, index, long_name, mask & 429 , n, n_distributed_partition, n_glo, name, positive, standard_name, unit, value ) 410 430 411 431 END SUBROUTINE xios(is_defined_axis_attr_hdl) 412 432 413 433 SUBROUTINE xios(is_defined_axis_attr_hdl_) & 414 ( axis_hdl, axis_ref_, begin_, bounds_, data_begin_, data_index_, data_n_, long_name_, mask_ & 415 , n_, n_distributed_partition_, n_glo_, name_, positive_, standard_name_, unit_, value_ ) 434 ( axis_hdl, axis_ref_, begin_, bounds_, data_begin_, data_index_, data_n_, index_, long_name_ & 435 , mask_, n_, n_distributed_partition_, n_glo_, name_, positive_, standard_name_, unit_, value_ & 436 ) 416 437 417 438 IMPLICIT NONE … … 429 450 LOGICAL, OPTIONAL, INTENT(OUT) :: data_n_ 430 451 LOGICAL(KIND=C_BOOL) :: data_n__tmp 452 LOGICAL, OPTIONAL, INTENT(OUT) :: index_ 453 LOGICAL(KIND=C_BOOL) :: index__tmp 431 454 LOGICAL, OPTIONAL, INTENT(OUT) :: long_name_ 432 455 LOGICAL(KIND=C_BOOL) :: long_name__tmp … … 480 503 ENDIF 481 504 505 IF (PRESENT(index_)) THEN 506 index__tmp = cxios_is_defined_axis_index(axis_hdl%daddr) 507 index_ = index__tmp 508 ENDIF 509 482 510 IF (PRESENT(long_name_)) THEN 483 511 long_name__tmp = cxios_is_defined_axis_long_name(axis_hdl%daddr)
Note: See TracChangeset
for help on using the changeset viewer.