- Timestamp:
- 06/28/22 11:44:19 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/interface/fortran_attr/iscalar_attr.F90
r1941 r2338 12 12 13 13 SUBROUTINE xios(set_scalar_attr) & 14 ( scalar_id, axis_type, bounds, bounds_name, comment, label, long_name, mask, n ame, positive &14 ( scalar_id, axis_type, bounds, bounds_name, comment, label, long_name, mask, n, name, positive & 15 15 , prec, scalar_ref, standard_name, unit, value ) 16 16 … … 26 26 LOGICAL , OPTIONAL, INTENT(IN) :: mask 27 27 LOGICAL (KIND=C_BOOL) :: mask_tmp 28 INTEGER , OPTIONAL, INTENT(IN) :: n 28 29 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: name 29 30 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: positive … … 37 38 (scalar_id,scalar_hdl) 38 39 CALL xios(set_scalar_attr_hdl_) & 39 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n ame, positive &40 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n, name, positive & 40 41 , prec, scalar_ref, standard_name, unit, value ) 41 42 … … 43 44 44 45 SUBROUTINE xios(set_scalar_attr_hdl) & 45 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n ame, positive &46 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n, name, positive & 46 47 , prec, scalar_ref, standard_name, unit, value ) 47 48 … … 56 57 LOGICAL , OPTIONAL, INTENT(IN) :: mask 57 58 LOGICAL (KIND=C_BOOL) :: mask_tmp 59 INTEGER , OPTIONAL, INTENT(IN) :: n 58 60 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: name 59 61 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: positive … … 65 67 66 68 CALL xios(set_scalar_attr_hdl_) & 67 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n ame, positive &69 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n, name, positive & 68 70 , prec, scalar_ref, standard_name, unit, value ) 69 71 … … 71 73 72 74 SUBROUTINE xios(set_scalar_attr_hdl_) & 73 ( scalar_hdl, axis_type_, bounds_, bounds_name_, comment_, label_, long_name_, mask_, n ame_ &75 ( scalar_hdl, axis_type_, bounds_, bounds_name_, comment_, label_, long_name_, mask_, n_, name_ & 74 76 , positive_, prec_, scalar_ref_, standard_name_, unit_, value_ ) 75 77 … … 84 86 LOGICAL , OPTIONAL, INTENT(IN) :: mask_ 85 87 LOGICAL (KIND=C_BOOL) :: mask__tmp 88 INTEGER , OPTIONAL, INTENT(IN) :: n_ 86 89 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: name_ 87 90 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: positive_ … … 128 131 ENDIF 129 132 133 IF (PRESENT(n_)) THEN 134 CALL cxios_set_scalar_n & 135 (scalar_hdl%daddr, n_) 136 ENDIF 137 130 138 IF (PRESENT(name_)) THEN 131 139 CALL cxios_set_scalar_name & … … 166 174 167 175 SUBROUTINE xios(get_scalar_attr) & 168 ( scalar_id, axis_type, bounds, bounds_name, comment, label, long_name, mask, n ame, positive &176 ( scalar_id, axis_type, bounds, bounds_name, comment, label, long_name, mask, n, name, positive & 169 177 , prec, scalar_ref, standard_name, unit, value ) 170 178 … … 180 188 LOGICAL , OPTIONAL, INTENT(OUT) :: mask 181 189 LOGICAL (KIND=C_BOOL) :: mask_tmp 190 INTEGER , OPTIONAL, INTENT(OUT) :: n 182 191 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: name 183 192 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: positive … … 191 200 (scalar_id,scalar_hdl) 192 201 CALL xios(get_scalar_attr_hdl_) & 193 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n ame, positive &202 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n, name, positive & 194 203 , prec, scalar_ref, standard_name, unit, value ) 195 204 … … 197 206 198 207 SUBROUTINE xios(get_scalar_attr_hdl) & 199 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n ame, positive &208 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n, name, positive & 200 209 , prec, scalar_ref, standard_name, unit, value ) 201 210 … … 210 219 LOGICAL , OPTIONAL, INTENT(OUT) :: mask 211 220 LOGICAL (KIND=C_BOOL) :: mask_tmp 221 INTEGER , OPTIONAL, INTENT(OUT) :: n 212 222 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: name 213 223 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: positive … … 219 229 220 230 CALL xios(get_scalar_attr_hdl_) & 221 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n ame, positive &231 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n, name, positive & 222 232 , prec, scalar_ref, standard_name, unit, value ) 223 233 … … 225 235 226 236 SUBROUTINE xios(get_scalar_attr_hdl_) & 227 ( scalar_hdl, axis_type_, bounds_, bounds_name_, comment_, label_, long_name_, mask_, n ame_ &237 ( scalar_hdl, axis_type_, bounds_, bounds_name_, comment_, label_, long_name_, mask_, n_, name_ & 228 238 , positive_, prec_, scalar_ref_, standard_name_, unit_, value_ ) 229 239 … … 238 248 LOGICAL , OPTIONAL, INTENT(OUT) :: mask_ 239 249 LOGICAL (KIND=C_BOOL) :: mask__tmp 250 INTEGER , OPTIONAL, INTENT(OUT) :: n_ 240 251 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: name_ 241 252 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: positive_ … … 282 293 ENDIF 283 294 295 IF (PRESENT(n_)) THEN 296 CALL cxios_get_scalar_n & 297 (scalar_hdl%daddr, n_) 298 ENDIF 299 284 300 IF (PRESENT(name_)) THEN 285 301 CALL cxios_get_scalar_name & … … 320 336 321 337 SUBROUTINE xios(is_defined_scalar_attr) & 322 ( scalar_id, axis_type, bounds, bounds_name, comment, label, long_name, mask, n ame, positive &338 ( scalar_id, axis_type, bounds, bounds_name, comment, label, long_name, mask, n, name, positive & 323 339 , prec, scalar_ref, standard_name, unit, value ) 324 340 … … 340 356 LOGICAL, OPTIONAL, INTENT(OUT) :: mask 341 357 LOGICAL(KIND=C_BOOL) :: mask_tmp 358 LOGICAL, OPTIONAL, INTENT(OUT) :: n 359 LOGICAL(KIND=C_BOOL) :: n_tmp 342 360 LOGICAL, OPTIONAL, INTENT(OUT) :: name 343 361 LOGICAL(KIND=C_BOOL) :: name_tmp … … 358 376 (scalar_id,scalar_hdl) 359 377 CALL xios(is_defined_scalar_attr_hdl_) & 360 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n ame, positive &378 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n, name, positive & 361 379 , prec, scalar_ref, standard_name, unit, value ) 362 380 … … 364 382 365 383 SUBROUTINE xios(is_defined_scalar_attr_hdl) & 366 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n ame, positive &384 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n, name, positive & 367 385 , prec, scalar_ref, standard_name, unit, value ) 368 386 … … 383 401 LOGICAL, OPTIONAL, INTENT(OUT) :: mask 384 402 LOGICAL(KIND=C_BOOL) :: mask_tmp 403 LOGICAL, OPTIONAL, INTENT(OUT) :: n 404 LOGICAL(KIND=C_BOOL) :: n_tmp 385 405 LOGICAL, OPTIONAL, INTENT(OUT) :: name 386 406 LOGICAL(KIND=C_BOOL) :: name_tmp … … 399 419 400 420 CALL xios(is_defined_scalar_attr_hdl_) & 401 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n ame, positive &421 ( scalar_hdl, axis_type, bounds, bounds_name, comment, label, long_name, mask, n, name, positive & 402 422 , prec, scalar_ref, standard_name, unit, value ) 403 423 … … 405 425 406 426 SUBROUTINE xios(is_defined_scalar_attr_hdl_) & 407 ( scalar_hdl, axis_type_, bounds_, bounds_name_, comment_, label_, long_name_, mask_, n ame_ &427 ( scalar_hdl, axis_type_, bounds_, bounds_name_, comment_, label_, long_name_, mask_, n_, name_ & 408 428 , positive_, prec_, scalar_ref_, standard_name_, unit_, value_ ) 409 429 … … 424 444 LOGICAL, OPTIONAL, INTENT(OUT) :: mask_ 425 445 LOGICAL(KIND=C_BOOL) :: mask__tmp 446 LOGICAL, OPTIONAL, INTENT(OUT) :: n_ 447 LOGICAL(KIND=C_BOOL) :: n__tmp 426 448 LOGICAL, OPTIONAL, INTENT(OUT) :: name_ 427 449 LOGICAL(KIND=C_BOOL) :: name__tmp … … 481 503 ENDIF 482 504 505 IF (PRESENT(n_)) THEN 506 n__tmp = cxios_is_defined_scalar_n & 507 (scalar_hdl%daddr) 508 n_ = n__tmp 509 ENDIF 510 483 511 IF (PRESENT(name_)) THEN 484 512 name__tmp = cxios_is_defined_scalar_name &
Note: See TracChangeset
for help on using the changeset viewer.