Changeset 2002 for LMDZ5/trunk/libf/bibio
- Timestamp:
- Apr 4, 2014, 2:39:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/bibio/wxios.F90
r2001 r2002 292 292 ! Pour déclarer un axe vertical !!!!!!!!!!!!!!! 293 293 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 294 SUBROUTINE wxios_add_vaxis(axis group_id, axis_file, axis_size, axis_value)295 IMPLICIT NONE 296 INCLUDE 'iniprint.h' 297 298 CHARACTER (len=*), INTENT(IN) :: axis group_id, axis_file294 SUBROUTINE wxios_add_vaxis(axis_id, axis_size, axis_value) 295 IMPLICIT NONE 296 INCLUDE 'iniprint.h' 297 298 CHARACTER (len=*), INTENT(IN) :: axis_id 299 299 INTEGER, INTENT(IN) :: axis_size 300 300 REAL, DIMENSION(axis_size), INTENT(IN) :: axis_value 301 301 302 TYPE(xios_axisgroup) :: axgroup303 TYPE(xios_axis) :: ax304 CHARACTER(len=50) :: axis_id305 306 IF (len_trim(axisgroup_id).gt.len(axis_id)) THEN307 WRITE(lunout,*) "wxios_add_vaxis: error, size of axis_id too small!!"308 WRITE(lunout,*) " increase it to at least ",len_trim(axisgroup_id)309 CALL abort_gcm("wxios_add_vaxis","len(axis_id) too small",1)310 ENDIF311 axis_id=trim(axisgroup_id)302 ! TYPE(xios_axisgroup) :: axgroup 303 ! TYPE(xios_axis) :: ax 304 ! CHARACTER(len=50) :: axis_id 305 306 ! IF (len_trim(axisgroup_id).gt.len(axis_id)) THEN 307 ! WRITE(lunout,*) "wxios_add_vaxis: error, size of axis_id too small!!" 308 ! WRITE(lunout,*) " increase it to at least ",len_trim(axisgroup_id) 309 ! CALL abort_gcm("wxios_add_vaxis","len(axis_id) too small",1) 310 ! ENDIF 311 ! axis_id=trim(axisgroup_id) 312 312 313 313 !On récupère le groupe d'axes qui va bien: 314 CALL xios_get_axisgroup_handle(axisgroup_id, axgroup)314 !CALL xios_get_axisgroup_handle(axisgroup_id, axgroup) 315 315 316 316 !On ajoute l'axe correspondant à ce fichier: 317 CALL xios_add_axis(axgroup, ax, TRIM(ADJUSTL(axis_id)))317 !CALL xios_add_axis(axgroup, ax, TRIM(ADJUSTL(axis_id))) 318 318 319 319 !Et on le parametrise: 320 CALL xios_set_axis_attr_hdl(ax, size=axis_size, value=axis_value) 320 !CALL xios_set_axis_attr_hdl(ax, size=axis_size, value=axis_value) 321 322 ! Ehouarn: New way to declare axis, without axis_group: 323 CALL xios_set_axis_attr(trim(axis_id),size=axis_size,value=axis_value) 321 324 322 325 !Vérification: … … 515 518 !Sinon on se contente de l'activer: 516 519 CALL xios_set_field_attr(fieldname, enabled=.TRUE.) 520 !NB: This will override an enable=.false. set by a user in the xml file; 521 ! then the only way to not output the field is by changing its 522 ! output level 517 523 ENDIF 518 524 519 525 END SUBROUTINE wxios_add_field_to_file 520 526 521 SUBROUTINE wxios_update_calendar(ito)522 INTEGER, INTENT(IN) :: ito523 CALL xios_update_calendar(ito)524 END SUBROUTINE wxios_update_calendar525 526 SUBROUTINE wxios_write_2D(fieldname, fdata)527 CHARACTER(len=*), INTENT(IN) :: fieldname528 REAL, DIMENSION(:,:), INTENT(IN) :: fdata529 530 CALL xios_send_field(fieldname, fdata)531 END SUBROUTINE wxios_write_2D532 533 SUBROUTINE wxios_write_3D(fieldname, fdata)534 CHARACTER(len=*), INTENT(IN) :: fieldname535 REAL, DIMENSION(:,:,:), INTENT(IN) :: fdata536 537 CALL xios_send_field(fieldname, fdata)538 END SUBROUTINE wxios_write_3D527 ! SUBROUTINE wxios_update_calendar(ito) 528 ! INTEGER, INTENT(IN) :: ito 529 ! CALL xios_update_calendar(ito) 530 ! END SUBROUTINE wxios_update_calendar 531 ! 532 ! SUBROUTINE wxios_write_2D(fieldname, fdata) 533 ! CHARACTER(len=*), INTENT(IN) :: fieldname 534 ! REAL, DIMENSION(:,:), INTENT(IN) :: fdata 535 ! 536 ! CALL xios_send_field(fieldname, fdata) 537 ! END SUBROUTINE wxios_write_2D 538 539 ! SUBROUTINE wxios_write_3D(fieldname, fdata) 540 ! CHARACTER(len=*), INTENT(IN) :: fieldname 541 ! REAL, DIMENSION(:,:,:), INTENT(IN) :: fdata 542 ! 543 ! CALL xios_send_field(fieldname, fdata) 544 ! END SUBROUTINE wxios_write_3D 539 545 540 546 SUBROUTINE wxios_closedef()
Note: See TracChangeset
for help on using the changeset viewer.