- Timestamp:
- 04/24/18 18:03:18 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/interface/fortran_attr/icalendar_wrapper_attr.F90
r966 r1492 12 12 13 13 SUBROUTINE xios(set_calendar_wrapper_attr) & 14 ( calendar_wrapper_id, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month &14 ( calendar_wrapper_id, comment, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 15 15 , month_lengths, start_date, time_origin, timestep, type, year_length ) 16 16 … … 18 18 TYPE(txios(calendar_wrapper)) :: calendar_wrapper_hdl 19 19 CHARACTER(LEN=*), INTENT(IN) ::calendar_wrapper_id 20 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: comment 20 21 INTEGER , OPTIONAL, INTENT(IN) :: day_length 21 22 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: leap_year_drift … … 32 33 (calendar_wrapper_id,calendar_wrapper_hdl) 33 34 CALL xios(set_calendar_wrapper_attr_hdl_) & 34 ( calendar_wrapper_hdl, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month &35 ( calendar_wrapper_hdl, comment, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 35 36 , month_lengths, start_date, time_origin, timestep, type, year_length ) 36 37 … … 38 39 39 40 SUBROUTINE xios(set_calendar_wrapper_attr_hdl) & 40 ( calendar_wrapper_hdl, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 41 , month_lengths, start_date, time_origin, timestep, type, year_length ) 42 43 IMPLICIT NONE 44 TYPE(txios(calendar_wrapper)) , INTENT(IN) :: calendar_wrapper_hdl 41 ( calendar_wrapper_hdl, comment, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 42 , month_lengths, start_date, time_origin, timestep, type, year_length ) 43 44 IMPLICIT NONE 45 TYPE(txios(calendar_wrapper)) , INTENT(IN) :: calendar_wrapper_hdl 46 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: comment 45 47 INTEGER , OPTIONAL, INTENT(IN) :: day_length 46 48 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: leap_year_drift … … 55 57 56 58 CALL xios(set_calendar_wrapper_attr_hdl_) & 57 ( calendar_wrapper_hdl, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month &59 ( calendar_wrapper_hdl, comment, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 58 60 , month_lengths, start_date, time_origin, timestep, type, year_length ) 59 61 … … 61 63 62 64 SUBROUTINE xios(set_calendar_wrapper_attr_hdl_) & 63 ( calendar_wrapper_hdl, day_length_, leap_year_drift_, leap_year_drift_offset_, leap_year_month_ &65 ( calendar_wrapper_hdl, comment_, day_length_, leap_year_drift_, leap_year_drift_offset_, leap_year_month_ & 64 66 , month_lengths_, start_date_, time_origin_, timestep_, type_, year_length_ ) 65 67 66 68 IMPLICIT NONE 67 69 TYPE(txios(calendar_wrapper)) , INTENT(IN) :: calendar_wrapper_hdl 70 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: comment_ 68 71 INTEGER , OPTIONAL, INTENT(IN) :: day_length_ 69 72 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: leap_year_drift_ … … 77 80 INTEGER , OPTIONAL, INTENT(IN) :: year_length_ 78 81 82 IF (PRESENT(comment_)) THEN 83 CALL cxios_set_calendar_wrapper_comment & 84 (calendar_wrapper_hdl%daddr, comment_, len(comment_)) 85 ENDIF 86 79 87 IF (PRESENT(day_length_)) THEN 80 88 CALL cxios_set_calendar_wrapper_day_length & … … 130 138 131 139 SUBROUTINE xios(get_calendar_wrapper_attr) & 132 ( calendar_wrapper_id, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month &140 ( calendar_wrapper_id, comment, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 133 141 , month_lengths, start_date, time_origin, timestep, type, year_length ) 134 142 … … 136 144 TYPE(txios(calendar_wrapper)) :: calendar_wrapper_hdl 137 145 CHARACTER(LEN=*), INTENT(IN) ::calendar_wrapper_id 146 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: comment 138 147 INTEGER , OPTIONAL, INTENT(OUT) :: day_length 139 148 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: leap_year_drift … … 150 159 (calendar_wrapper_id,calendar_wrapper_hdl) 151 160 CALL xios(get_calendar_wrapper_attr_hdl_) & 152 ( calendar_wrapper_hdl, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month &161 ( calendar_wrapper_hdl, comment, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 153 162 , month_lengths, start_date, time_origin, timestep, type, year_length ) 154 163 … … 156 165 157 166 SUBROUTINE xios(get_calendar_wrapper_attr_hdl) & 158 ( calendar_wrapper_hdl, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 159 , month_lengths, start_date, time_origin, timestep, type, year_length ) 160 161 IMPLICIT NONE 162 TYPE(txios(calendar_wrapper)) , INTENT(IN) :: calendar_wrapper_hdl 167 ( calendar_wrapper_hdl, comment, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 168 , month_lengths, start_date, time_origin, timestep, type, year_length ) 169 170 IMPLICIT NONE 171 TYPE(txios(calendar_wrapper)) , INTENT(IN) :: calendar_wrapper_hdl 172 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: comment 163 173 INTEGER , OPTIONAL, INTENT(OUT) :: day_length 164 174 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: leap_year_drift … … 173 183 174 184 CALL xios(get_calendar_wrapper_attr_hdl_) & 175 ( calendar_wrapper_hdl, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month &185 ( calendar_wrapper_hdl, comment, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 176 186 , month_lengths, start_date, time_origin, timestep, type, year_length ) 177 187 … … 179 189 180 190 SUBROUTINE xios(get_calendar_wrapper_attr_hdl_) & 181 ( calendar_wrapper_hdl, day_length_, leap_year_drift_, leap_year_drift_offset_, leap_year_month_ &191 ( calendar_wrapper_hdl, comment_, day_length_, leap_year_drift_, leap_year_drift_offset_, leap_year_month_ & 182 192 , month_lengths_, start_date_, time_origin_, timestep_, type_, year_length_ ) 183 193 184 194 IMPLICIT NONE 185 195 TYPE(txios(calendar_wrapper)) , INTENT(IN) :: calendar_wrapper_hdl 196 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: comment_ 186 197 INTEGER , OPTIONAL, INTENT(OUT) :: day_length_ 187 198 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: leap_year_drift_ … … 195 206 INTEGER , OPTIONAL, INTENT(OUT) :: year_length_ 196 207 208 IF (PRESENT(comment_)) THEN 209 CALL cxios_get_calendar_wrapper_comment & 210 (calendar_wrapper_hdl%daddr, comment_, len(comment_)) 211 ENDIF 212 197 213 IF (PRESENT(day_length_)) THEN 198 214 CALL cxios_get_calendar_wrapper_day_length & … … 248 264 249 265 SUBROUTINE xios(is_defined_calendar_wrapper_attr) & 250 ( calendar_wrapper_id, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month &266 ( calendar_wrapper_id, comment, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 251 267 , month_lengths, start_date, time_origin, timestep, type, year_length ) 252 268 … … 254 270 TYPE(txios(calendar_wrapper)) :: calendar_wrapper_hdl 255 271 CHARACTER(LEN=*), INTENT(IN) ::calendar_wrapper_id 272 LOGICAL, OPTIONAL, INTENT(OUT) :: comment 273 LOGICAL(KIND=C_BOOL) :: comment_tmp 256 274 LOGICAL, OPTIONAL, INTENT(OUT) :: day_length 257 275 LOGICAL(KIND=C_BOOL) :: day_length_tmp … … 278 296 (calendar_wrapper_id,calendar_wrapper_hdl) 279 297 CALL xios(is_defined_calendar_wrapper_attr_hdl_) & 280 ( calendar_wrapper_hdl, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month &298 ( calendar_wrapper_hdl, comment, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 281 299 , month_lengths, start_date, time_origin, timestep, type, year_length ) 282 300 … … 284 302 285 303 SUBROUTINE xios(is_defined_calendar_wrapper_attr_hdl) & 286 ( calendar_wrapper_hdl, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 287 , month_lengths, start_date, time_origin, timestep, type, year_length ) 288 289 IMPLICIT NONE 290 TYPE(txios(calendar_wrapper)) , INTENT(IN) :: calendar_wrapper_hdl 304 ( calendar_wrapper_hdl, comment, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 305 , month_lengths, start_date, time_origin, timestep, type, year_length ) 306 307 IMPLICIT NONE 308 TYPE(txios(calendar_wrapper)) , INTENT(IN) :: calendar_wrapper_hdl 309 LOGICAL, OPTIONAL, INTENT(OUT) :: comment 310 LOGICAL(KIND=C_BOOL) :: comment_tmp 291 311 LOGICAL, OPTIONAL, INTENT(OUT) :: day_length 292 312 LOGICAL(KIND=C_BOOL) :: day_length_tmp … … 311 331 312 332 CALL xios(is_defined_calendar_wrapper_attr_hdl_) & 313 ( calendar_wrapper_hdl, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month &333 ( calendar_wrapper_hdl, comment, day_length, leap_year_drift, leap_year_drift_offset, leap_year_month & 314 334 , month_lengths, start_date, time_origin, timestep, type, year_length ) 315 335 … … 317 337 318 338 SUBROUTINE xios(is_defined_calendar_wrapper_attr_hdl_) & 319 ( calendar_wrapper_hdl, day_length_, leap_year_drift_, leap_year_drift_offset_, leap_year_month_ &339 ( calendar_wrapper_hdl, comment_, day_length_, leap_year_drift_, leap_year_drift_offset_, leap_year_month_ & 320 340 , month_lengths_, start_date_, time_origin_, timestep_, type_, year_length_ ) 321 341 322 342 IMPLICIT NONE 323 343 TYPE(txios(calendar_wrapper)) , INTENT(IN) :: calendar_wrapper_hdl 344 LOGICAL, OPTIONAL, INTENT(OUT) :: comment_ 345 LOGICAL(KIND=C_BOOL) :: comment__tmp 324 346 LOGICAL, OPTIONAL, INTENT(OUT) :: day_length_ 325 347 LOGICAL(KIND=C_BOOL) :: day_length__tmp … … 343 365 LOGICAL(KIND=C_BOOL) :: year_length__tmp 344 366 367 IF (PRESENT(comment_)) THEN 368 comment__tmp = cxios_is_defined_calendar_wrapper_comment & 369 (calendar_wrapper_hdl%daddr) 370 comment_ = comment__tmp 371 ENDIF 372 345 373 IF (PRESENT(day_length_)) THEN 346 374 day_length__tmp = cxios_is_defined_calendar_wrapper_day_length &
Note: See TracChangeset
for help on using the changeset viewer.