Changeset 318 for XIOS/trunk/src/fortran_attr_interface/ifile_attr.F90
- Timestamp:
- 02/21/12 15:34:27 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/fortran_attr_interface/ifile_attr.F90
r314 r318 12 12 13 13 SUBROUTINE xios(set_file_attr) & 14 ( file_id, description, enabled, name, name_suffix, output_freq, output_level, type ) 14 ( file_id, description, enabled, name, name_suffix, output_freq, output_level, split_freq, sync_freq & 15 , type ) 15 16 16 17 IMPLICIT NONE … … 24 25 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: output_freq 25 26 INTEGER , OPTIONAL, INTENT(IN) :: output_level 27 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: split_freq 28 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: sync_freq 26 29 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: type 27 30 28 31 CALL xios(get_file_handle)(file_id,file_hdl) 29 32 CALL xios(set_file_attr_hdl_) & 30 ( file_hdl, description, enabled, name, name_suffix, output_freq, output_level, type ) 33 ( file_hdl, description, enabled, name, name_suffix, output_freq, output_level, split_freq, sync_freq & 34 , type ) 31 35 32 36 END SUBROUTINE xios(set_file_attr) 33 37 34 38 SUBROUTINE xios(set_file_attr_hdl) & 35 ( file_hdl, description, enabled, name, name_suffix, output_freq, output_level, type ) 39 ( file_hdl, description, enabled, name, name_suffix, output_freq, output_level, split_freq, sync_freq & 40 , type ) 36 41 37 42 IMPLICIT NONE … … 44 49 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: output_freq 45 50 INTEGER , OPTIONAL, INTENT(IN) :: output_level 51 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: split_freq 52 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: sync_freq 46 53 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: type 47 54 48 55 CALL xios(set_file_attr_hdl_) & 49 ( file_hdl, description, enabled, name, name_suffix, output_freq, output_level, type ) 56 ( file_hdl, description, enabled, name, name_suffix, output_freq, output_level, split_freq, sync_freq & 57 , type ) 50 58 51 59 END SUBROUTINE xios(set_file_attr_hdl) 52 60 53 61 SUBROUTINE xios(set_file_attr_hdl_) & 54 ( file_hdl, description_, enabled_, name_, name_suffix_, output_freq_, output_level_, type_ &55 )62 ( file_hdl, description_, enabled_, name_, name_suffix_, output_freq_, output_level_, split_freq_ & 63 , sync_freq_, type_ ) 56 64 57 65 IMPLICIT NONE … … 64 72 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: output_freq_ 65 73 INTEGER , OPTIONAL, INTENT(IN) :: output_level_ 74 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: split_freq_ 75 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: sync_freq_ 66 76 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: type_ 67 77 … … 91 101 ENDIF 92 102 103 IF (PRESENT(split_freq_)) THEN 104 CALL cxios_set_file_split_freq(file_hdl%daddr, split_freq_, len(split_freq_)) 105 ENDIF 106 107 IF (PRESENT(sync_freq_)) THEN 108 CALL cxios_set_file_sync_freq(file_hdl%daddr, sync_freq_, len(sync_freq_)) 109 ENDIF 110 93 111 IF (PRESENT(type_)) THEN 94 112 CALL cxios_set_file_type(file_hdl%daddr, type_, len(type_)) … … 100 118 101 119 SUBROUTINE xios(get_file_attr) & 102 ( file_id, description, enabled, name, name_suffix, output_freq, output_level, type ) 120 ( file_id, description, enabled, name, name_suffix, output_freq, output_level, split_freq, sync_freq & 121 , type ) 103 122 104 123 IMPLICIT NONE … … 112 131 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: output_freq 113 132 INTEGER , OPTIONAL, INTENT(OUT) :: output_level 133 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: split_freq 134 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: sync_freq 114 135 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: type 115 136 116 137 CALL xios(get_file_handle)(file_id,file_hdl) 117 138 CALL xios(get_file_attr_hdl_) & 118 ( file_hdl, description, enabled, name, name_suffix, output_freq, output_level, type ) 139 ( file_hdl, description, enabled, name, name_suffix, output_freq, output_level, split_freq, sync_freq & 140 , type ) 119 141 120 142 END SUBROUTINE xios(get_file_attr) 121 143 122 144 SUBROUTINE xios(get_file_attr_hdl) & 123 ( file_hdl, description, enabled, name, name_suffix, output_freq, output_level, type ) 145 ( file_hdl, description, enabled, name, name_suffix, output_freq, output_level, split_freq, sync_freq & 146 , type ) 124 147 125 148 IMPLICIT NONE … … 132 155 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: output_freq 133 156 INTEGER , OPTIONAL, INTENT(OUT) :: output_level 157 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: split_freq 158 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: sync_freq 134 159 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: type 135 160 136 161 CALL xios(get_file_attr_hdl_) & 137 ( file_hdl, description, enabled, name, name_suffix, output_freq, output_level, type ) 162 ( file_hdl, description, enabled, name, name_suffix, output_freq, output_level, split_freq, sync_freq & 163 , type ) 138 164 139 165 END SUBROUTINE xios(get_file_attr_hdl) 140 166 141 167 SUBROUTINE xios(get_file_attr_hdl_) & 142 ( file_hdl, description_, enabled_, name_, name_suffix_, output_freq_, output_level_, type_ &143 )168 ( file_hdl, description_, enabled_, name_, name_suffix_, output_freq_, output_level_, split_freq_ & 169 , sync_freq_, type_ ) 144 170 145 171 IMPLICIT NONE … … 152 178 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: output_freq_ 153 179 INTEGER , OPTIONAL, INTENT(OUT) :: output_level_ 180 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: split_freq_ 181 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: sync_freq_ 154 182 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: type_ 155 183 … … 179 207 ENDIF 180 208 209 IF (PRESENT(split_freq_)) THEN 210 CALL cxios_get_file_split_freq(file_hdl%daddr, split_freq_, len(split_freq_)) 211 ENDIF 212 213 IF (PRESENT(sync_freq_)) THEN 214 CALL cxios_get_file_sync_freq(file_hdl%daddr, sync_freq_, len(sync_freq_)) 215 ENDIF 216 181 217 IF (PRESENT(type_)) THEN 182 218 CALL cxios_get_file_type(file_hdl%daddr, type_, len(type_))
Note: See TracChangeset
for help on using the changeset viewer.