- Timestamp:
- 01/10/17 14:36:29 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/interface/fortran_attr/iinterpolate_domain_attr.F90
r966 r1021 12 12 13 13 SUBROUTINE xios(set_interpolate_domain_attr) & 14 ( interpolate_domain_id, file, order, renormalize)14 ( interpolate_domain_id, file, mode, order, renormalize, weight_filename, write_weight ) 15 15 16 16 IMPLICIT NONE … … 18 18 CHARACTER(LEN=*), INTENT(IN) ::interpolate_domain_id 19 19 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: file 20 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: mode 20 21 INTEGER , OPTIONAL, INTENT(IN) :: order 21 22 LOGICAL , OPTIONAL, INTENT(IN) :: renormalize 22 23 LOGICAL (KIND=C_BOOL) :: renormalize_tmp 24 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: weight_filename 25 LOGICAL , OPTIONAL, INTENT(IN) :: write_weight 26 LOGICAL (KIND=C_BOOL) :: write_weight_tmp 23 27 24 28 CALL xios(get_interpolate_domain_handle) & 25 29 (interpolate_domain_id,interpolate_domain_hdl) 26 30 CALL xios(set_interpolate_domain_attr_hdl_) & 27 ( interpolate_domain_hdl, file, order, renormalize)31 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 28 32 29 33 END SUBROUTINE xios(set_interpolate_domain_attr) 30 34 31 35 SUBROUTINE xios(set_interpolate_domain_attr_hdl) & 32 ( interpolate_domain_hdl, file, order, renormalize)36 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 33 37 34 38 IMPLICIT NONE 35 39 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 36 40 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: file 41 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: mode 37 42 INTEGER , OPTIONAL, INTENT(IN) :: order 38 43 LOGICAL , OPTIONAL, INTENT(IN) :: renormalize 39 44 LOGICAL (KIND=C_BOOL) :: renormalize_tmp 45 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: weight_filename 46 LOGICAL , OPTIONAL, INTENT(IN) :: write_weight 47 LOGICAL (KIND=C_BOOL) :: write_weight_tmp 40 48 41 49 CALL xios(set_interpolate_domain_attr_hdl_) & 42 ( interpolate_domain_hdl, file, order, renormalize)50 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 43 51 44 52 END SUBROUTINE xios(set_interpolate_domain_attr_hdl) 45 53 46 54 SUBROUTINE xios(set_interpolate_domain_attr_hdl_) & 47 ( interpolate_domain_hdl, file_, order_, renormalize_ ) 55 ( interpolate_domain_hdl, file_, mode_, order_, renormalize_, weight_filename_, write_weight_ & 56 ) 48 57 49 58 IMPLICIT NONE 50 59 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 51 60 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: file_ 61 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: mode_ 52 62 INTEGER , OPTIONAL, INTENT(IN) :: order_ 53 63 LOGICAL , OPTIONAL, INTENT(IN) :: renormalize_ 54 64 LOGICAL (KIND=C_BOOL) :: renormalize__tmp 65 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: weight_filename_ 66 LOGICAL , OPTIONAL, INTENT(IN) :: write_weight_ 67 LOGICAL (KIND=C_BOOL) :: write_weight__tmp 55 68 56 69 IF (PRESENT(file_)) THEN 57 70 CALL cxios_set_interpolate_domain_file & 58 71 (interpolate_domain_hdl%daddr, file_, len(file_)) 72 ENDIF 73 74 IF (PRESENT(mode_)) THEN 75 CALL cxios_set_interpolate_domain_mode & 76 (interpolate_domain_hdl%daddr, mode_, len(mode_)) 59 77 ENDIF 60 78 … … 70 88 ENDIF 71 89 90 IF (PRESENT(weight_filename_)) THEN 91 CALL cxios_set_interpolate_domain_weight_filename & 92 (interpolate_domain_hdl%daddr, weight_filename_, len(weight_filename_)) 93 ENDIF 94 95 IF (PRESENT(write_weight_)) THEN 96 write_weight__tmp = write_weight_ 97 CALL cxios_set_interpolate_domain_write_weight & 98 (interpolate_domain_hdl%daddr, write_weight__tmp) 99 ENDIF 100 72 101 END SUBROUTINE xios(set_interpolate_domain_attr_hdl_) 73 102 74 103 SUBROUTINE xios(get_interpolate_domain_attr) & 75 ( interpolate_domain_id, file, order, renormalize)104 ( interpolate_domain_id, file, mode, order, renormalize, weight_filename, write_weight ) 76 105 77 106 IMPLICIT NONE … … 79 108 CHARACTER(LEN=*), INTENT(IN) ::interpolate_domain_id 80 109 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: file 110 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: mode 81 111 INTEGER , OPTIONAL, INTENT(OUT) :: order 82 112 LOGICAL , OPTIONAL, INTENT(OUT) :: renormalize 83 113 LOGICAL (KIND=C_BOOL) :: renormalize_tmp 114 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: weight_filename 115 LOGICAL , OPTIONAL, INTENT(OUT) :: write_weight 116 LOGICAL (KIND=C_BOOL) :: write_weight_tmp 84 117 85 118 CALL xios(get_interpolate_domain_handle) & 86 119 (interpolate_domain_id,interpolate_domain_hdl) 87 120 CALL xios(get_interpolate_domain_attr_hdl_) & 88 ( interpolate_domain_hdl, file, order, renormalize)121 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 89 122 90 123 END SUBROUTINE xios(get_interpolate_domain_attr) 91 124 92 125 SUBROUTINE xios(get_interpolate_domain_attr_hdl) & 93 ( interpolate_domain_hdl, file, order, renormalize)126 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 94 127 95 128 IMPLICIT NONE 96 129 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 97 130 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: file 131 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: mode 98 132 INTEGER , OPTIONAL, INTENT(OUT) :: order 99 133 LOGICAL , OPTIONAL, INTENT(OUT) :: renormalize 100 134 LOGICAL (KIND=C_BOOL) :: renormalize_tmp 135 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: weight_filename 136 LOGICAL , OPTIONAL, INTENT(OUT) :: write_weight 137 LOGICAL (KIND=C_BOOL) :: write_weight_tmp 101 138 102 139 CALL xios(get_interpolate_domain_attr_hdl_) & 103 ( interpolate_domain_hdl, file, order, renormalize)140 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 104 141 105 142 END SUBROUTINE xios(get_interpolate_domain_attr_hdl) 106 143 107 144 SUBROUTINE xios(get_interpolate_domain_attr_hdl_) & 108 ( interpolate_domain_hdl, file_, order_, renormalize_ ) 145 ( interpolate_domain_hdl, file_, mode_, order_, renormalize_, weight_filename_, write_weight_ & 146 ) 109 147 110 148 IMPLICIT NONE 111 149 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 112 150 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: file_ 151 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: mode_ 113 152 INTEGER , OPTIONAL, INTENT(OUT) :: order_ 114 153 LOGICAL , OPTIONAL, INTENT(OUT) :: renormalize_ 115 154 LOGICAL (KIND=C_BOOL) :: renormalize__tmp 155 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: weight_filename_ 156 LOGICAL , OPTIONAL, INTENT(OUT) :: write_weight_ 157 LOGICAL (KIND=C_BOOL) :: write_weight__tmp 116 158 117 159 IF (PRESENT(file_)) THEN 118 160 CALL cxios_get_interpolate_domain_file & 119 161 (interpolate_domain_hdl%daddr, file_, len(file_)) 162 ENDIF 163 164 IF (PRESENT(mode_)) THEN 165 CALL cxios_get_interpolate_domain_mode & 166 (interpolate_domain_hdl%daddr, mode_, len(mode_)) 120 167 ENDIF 121 168 … … 131 178 ENDIF 132 179 180 IF (PRESENT(weight_filename_)) THEN 181 CALL cxios_get_interpolate_domain_weight_filename & 182 (interpolate_domain_hdl%daddr, weight_filename_, len(weight_filename_)) 183 ENDIF 184 185 IF (PRESENT(write_weight_)) THEN 186 CALL cxios_get_interpolate_domain_write_weight & 187 (interpolate_domain_hdl%daddr, write_weight__tmp) 188 write_weight_ = write_weight__tmp 189 ENDIF 190 133 191 END SUBROUTINE xios(get_interpolate_domain_attr_hdl_) 134 192 135 193 SUBROUTINE xios(is_defined_interpolate_domain_attr) & 136 ( interpolate_domain_id, file, order, renormalize)194 ( interpolate_domain_id, file, mode, order, renormalize, weight_filename, write_weight ) 137 195 138 196 IMPLICIT NONE … … 141 199 LOGICAL, OPTIONAL, INTENT(OUT) :: file 142 200 LOGICAL(KIND=C_BOOL) :: file_tmp 201 LOGICAL, OPTIONAL, INTENT(OUT) :: mode 202 LOGICAL(KIND=C_BOOL) :: mode_tmp 143 203 LOGICAL, OPTIONAL, INTENT(OUT) :: order 144 204 LOGICAL(KIND=C_BOOL) :: order_tmp 145 205 LOGICAL, OPTIONAL, INTENT(OUT) :: renormalize 146 206 LOGICAL(KIND=C_BOOL) :: renormalize_tmp 207 LOGICAL, OPTIONAL, INTENT(OUT) :: weight_filename 208 LOGICAL(KIND=C_BOOL) :: weight_filename_tmp 209 LOGICAL, OPTIONAL, INTENT(OUT) :: write_weight 210 LOGICAL(KIND=C_BOOL) :: write_weight_tmp 147 211 148 212 CALL xios(get_interpolate_domain_handle) & 149 213 (interpolate_domain_id,interpolate_domain_hdl) 150 214 CALL xios(is_defined_interpolate_domain_attr_hdl_) & 151 ( interpolate_domain_hdl, file, order, renormalize)215 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 152 216 153 217 END SUBROUTINE xios(is_defined_interpolate_domain_attr) 154 218 155 219 SUBROUTINE xios(is_defined_interpolate_domain_attr_hdl) & 156 ( interpolate_domain_hdl, file, order, renormalize)220 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 157 221 158 222 IMPLICIT NONE … … 160 224 LOGICAL, OPTIONAL, INTENT(OUT) :: file 161 225 LOGICAL(KIND=C_BOOL) :: file_tmp 226 LOGICAL, OPTIONAL, INTENT(OUT) :: mode 227 LOGICAL(KIND=C_BOOL) :: mode_tmp 162 228 LOGICAL, OPTIONAL, INTENT(OUT) :: order 163 229 LOGICAL(KIND=C_BOOL) :: order_tmp 164 230 LOGICAL, OPTIONAL, INTENT(OUT) :: renormalize 165 231 LOGICAL(KIND=C_BOOL) :: renormalize_tmp 232 LOGICAL, OPTIONAL, INTENT(OUT) :: weight_filename 233 LOGICAL(KIND=C_BOOL) :: weight_filename_tmp 234 LOGICAL, OPTIONAL, INTENT(OUT) :: write_weight 235 LOGICAL(KIND=C_BOOL) :: write_weight_tmp 166 236 167 237 CALL xios(is_defined_interpolate_domain_attr_hdl_) & 168 ( interpolate_domain_hdl, file, order, renormalize)238 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 169 239 170 240 END SUBROUTINE xios(is_defined_interpolate_domain_attr_hdl) 171 241 172 242 SUBROUTINE xios(is_defined_interpolate_domain_attr_hdl_) & 173 ( interpolate_domain_hdl, file_, order_, renormalize_ ) 243 ( interpolate_domain_hdl, file_, mode_, order_, renormalize_, weight_filename_, write_weight_ & 244 ) 174 245 175 246 IMPLICIT NONE … … 177 248 LOGICAL, OPTIONAL, INTENT(OUT) :: file_ 178 249 LOGICAL(KIND=C_BOOL) :: file__tmp 250 LOGICAL, OPTIONAL, INTENT(OUT) :: mode_ 251 LOGICAL(KIND=C_BOOL) :: mode__tmp 179 252 LOGICAL, OPTIONAL, INTENT(OUT) :: order_ 180 253 LOGICAL(KIND=C_BOOL) :: order__tmp 181 254 LOGICAL, OPTIONAL, INTENT(OUT) :: renormalize_ 182 255 LOGICAL(KIND=C_BOOL) :: renormalize__tmp 256 LOGICAL, OPTIONAL, INTENT(OUT) :: weight_filename_ 257 LOGICAL(KIND=C_BOOL) :: weight_filename__tmp 258 LOGICAL, OPTIONAL, INTENT(OUT) :: write_weight_ 259 LOGICAL(KIND=C_BOOL) :: write_weight__tmp 183 260 184 261 IF (PRESENT(file_)) THEN … … 188 265 ENDIF 189 266 267 IF (PRESENT(mode_)) THEN 268 mode__tmp = cxios_is_defined_interpolate_domain_mode & 269 (interpolate_domain_hdl%daddr) 270 mode_ = mode__tmp 271 ENDIF 272 190 273 IF (PRESENT(order_)) THEN 191 274 order__tmp = cxios_is_defined_interpolate_domain_order & … … 200 283 ENDIF 201 284 285 IF (PRESENT(weight_filename_)) THEN 286 weight_filename__tmp = cxios_is_defined_interpolate_domain_weight_filename & 287 (interpolate_domain_hdl%daddr) 288 weight_filename_ = weight_filename__tmp 289 ENDIF 290 291 IF (PRESENT(write_weight_)) THEN 292 write_weight__tmp = cxios_is_defined_interpolate_domain_write_weight & 293 (interpolate_domain_hdl%daddr) 294 write_weight_ = write_weight__tmp 295 ENDIF 296 202 297 END SUBROUTINE xios(is_defined_interpolate_domain_attr_hdl_) 203 298
Note: See TracChangeset
for help on using the changeset viewer.