Changeset 598 for XIOS/trunk/src/interface/fortran_attr/ifile_attr.F90
- Timestamp:
- 05/26/15 16:13:47 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/fortran_attr/ifile_attr.F90
r581 r598 12 12 13 13 SUBROUTINE xios(set_file_attr) & 14 ( file_id, append, description, enabled, format, min_digits, name, name_suffix, output_freq &14 ( file_id, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 15 15 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 16 16 … … 25 25 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: format 26 26 INTEGER , OPTIONAL, INTENT(IN) :: min_digits 27 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: mode 27 28 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: name 28 29 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: name_suffix … … 37 38 CALL xios(get_file_handle)(file_id,file_hdl) 38 39 CALL xios(set_file_attr_hdl_) & 39 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq &40 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 40 41 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 41 42 … … 43 44 44 45 SUBROUTINE xios(set_file_attr_hdl) & 45 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq &46 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 46 47 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 47 48 … … 55 56 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: format 56 57 INTEGER , OPTIONAL, INTENT(IN) :: min_digits 58 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: mode 57 59 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: name 58 60 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: name_suffix … … 66 68 67 69 CALL xios(set_file_attr_hdl_) & 68 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq &70 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 69 71 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 70 72 … … 72 74 73 75 SUBROUTINE xios(set_file_attr_hdl_) & 74 ( file_hdl, append_, description_, enabled_, format_, min_digits_, name_, name_suffix_, output_freq_ & 75 , output_level_, par_access_, split_freq_, split_freq_format_, sync_freq_, type_ ) 76 ( file_hdl, append_, description_, enabled_, format_, min_digits_, mode_, name_, name_suffix_ & 77 , output_freq_, output_level_, par_access_, split_freq_, split_freq_format_, sync_freq_, type_ & 78 ) 76 79 77 80 IMPLICIT NONE … … 84 87 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: format_ 85 88 INTEGER , OPTIONAL, INTENT(IN) :: min_digits_ 89 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: mode_ 86 90 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: name_ 87 91 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: name_suffix_ … … 116 120 ENDIF 117 121 122 IF (PRESENT(mode_)) THEN 123 CALL cxios_set_file_mode(file_hdl%daddr, mode_, len(mode_)) 124 ENDIF 125 118 126 IF (PRESENT(name_)) THEN 119 127 CALL cxios_set_file_name(file_hdl%daddr, name_, len(name_)) … … 155 163 156 164 SUBROUTINE xios(get_file_attr) & 157 ( file_id, append, description, enabled, format, min_digits, name, name_suffix, output_freq &165 ( file_id, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 158 166 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 159 167 … … 168 176 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: format 169 177 INTEGER , OPTIONAL, INTENT(OUT) :: min_digits 178 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: mode 170 179 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: name 171 180 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: name_suffix … … 180 189 CALL xios(get_file_handle)(file_id,file_hdl) 181 190 CALL xios(get_file_attr_hdl_) & 182 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq &191 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 183 192 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 184 193 … … 186 195 187 196 SUBROUTINE xios(get_file_attr_hdl) & 188 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq &197 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 189 198 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 190 199 … … 198 207 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: format 199 208 INTEGER , OPTIONAL, INTENT(OUT) :: min_digits 209 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: mode 200 210 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: name 201 211 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: name_suffix … … 209 219 210 220 CALL xios(get_file_attr_hdl_) & 211 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq &221 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 212 222 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 213 223 … … 215 225 216 226 SUBROUTINE xios(get_file_attr_hdl_) & 217 ( file_hdl, append_, description_, enabled_, format_, min_digits_, name_, name_suffix_, output_freq_ & 218 , output_level_, par_access_, split_freq_, split_freq_format_, sync_freq_, type_ ) 227 ( file_hdl, append_, description_, enabled_, format_, min_digits_, mode_, name_, name_suffix_ & 228 , output_freq_, output_level_, par_access_, split_freq_, split_freq_format_, sync_freq_, type_ & 229 ) 219 230 220 231 IMPLICIT NONE … … 227 238 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: format_ 228 239 INTEGER , OPTIONAL, INTENT(OUT) :: min_digits_ 240 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: mode_ 229 241 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: name_ 230 242 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: name_suffix_ … … 259 271 ENDIF 260 272 273 IF (PRESENT(mode_)) THEN 274 CALL cxios_get_file_mode(file_hdl%daddr, mode_, len(mode_)) 275 ENDIF 276 261 277 IF (PRESENT(name_)) THEN 262 278 CALL cxios_get_file_name(file_hdl%daddr, name_, len(name_)) … … 298 314 299 315 SUBROUTINE xios(is_defined_file_attr) & 300 ( file_id, append, description, enabled, format, min_digits, name, name_suffix, output_freq &316 ( file_id, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 301 317 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 302 318 … … 314 330 LOGICAL, OPTIONAL, INTENT(OUT) :: min_digits 315 331 LOGICAL(KIND=C_BOOL) :: min_digits_tmp 332 LOGICAL, OPTIONAL, INTENT(OUT) :: mode 333 LOGICAL(KIND=C_BOOL) :: mode_tmp 316 334 LOGICAL, OPTIONAL, INTENT(OUT) :: name 317 335 LOGICAL(KIND=C_BOOL) :: name_tmp … … 335 353 CALL xios(get_file_handle)(file_id,file_hdl) 336 354 CALL xios(is_defined_file_attr_hdl_) & 337 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq &355 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 338 356 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 339 357 … … 341 359 342 360 SUBROUTINE xios(is_defined_file_attr_hdl) & 343 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq &361 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 344 362 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 345 363 … … 356 374 LOGICAL, OPTIONAL, INTENT(OUT) :: min_digits 357 375 LOGICAL(KIND=C_BOOL) :: min_digits_tmp 376 LOGICAL, OPTIONAL, INTENT(OUT) :: mode 377 LOGICAL(KIND=C_BOOL) :: mode_tmp 358 378 LOGICAL, OPTIONAL, INTENT(OUT) :: name 359 379 LOGICAL(KIND=C_BOOL) :: name_tmp … … 376 396 377 397 CALL xios(is_defined_file_attr_hdl_) & 378 ( file_hdl, append, description, enabled, format, min_digits, name, name_suffix, output_freq &398 ( file_hdl, append, description, enabled, format, min_digits, mode, name, name_suffix, output_freq & 379 399 , output_level, par_access, split_freq, split_freq_format, sync_freq, type ) 380 400 … … 382 402 383 403 SUBROUTINE xios(is_defined_file_attr_hdl_) & 384 ( file_hdl, append_, description_, enabled_, format_, min_digits_, name_, name_suffix_, output_freq_ & 385 , output_level_, par_access_, split_freq_, split_freq_format_, sync_freq_, type_ ) 404 ( file_hdl, append_, description_, enabled_, format_, min_digits_, mode_, name_, name_suffix_ & 405 , output_freq_, output_level_, par_access_, split_freq_, split_freq_format_, sync_freq_, type_ & 406 ) 386 407 387 408 IMPLICIT NONE … … 397 418 LOGICAL, OPTIONAL, INTENT(OUT) :: min_digits_ 398 419 LOGICAL(KIND=C_BOOL) :: min_digits__tmp 420 LOGICAL, OPTIONAL, INTENT(OUT) :: mode_ 421 LOGICAL(KIND=C_BOOL) :: mode__tmp 399 422 LOGICAL, OPTIONAL, INTENT(OUT) :: name_ 400 423 LOGICAL(KIND=C_BOOL) :: name__tmp … … 441 464 ENDIF 442 465 466 IF (PRESENT(mode_)) THEN 467 mode__tmp = cxios_is_defined_file_mode(file_hdl%daddr) 468 mode_ = mode__tmp 469 ENDIF 470 443 471 IF (PRESENT(name_)) THEN 444 472 name__tmp = cxios_is_defined_file_name(file_hdl%daddr)
Note: See TracChangeset
for help on using the changeset viewer.