Ignore:
Timestamp:
Oct 3, 2017, 4:45:26 PM (7 years ago)
Author:
Laurent Fairhead
Message:

Modifications to the code and xml files to output Ap and B, the coefficients
of the hybrid coordinates as requested by the CMIP6 DataRequest?
LF (with guidance from A. Caubel and S. Senesi)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/misc/wxios.F90

    r2741 r3003  
    311311    ! Pour déclarer un axe vertical !!!!!!!!!!!!!!!
    312312    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    313     SUBROUTINE wxios_add_vaxis(axis_id, axis_size, axis_value)
     313    SUBROUTINE wxios_add_vaxis(axis_id, axis_size, axis_value,     &
     314                               positif, bnds)
    314315        USE print_control_mod, ONLY : prt_level, lunout
    315316        IMPLICIT NONE
     
    318319        INTEGER, INTENT(IN) :: axis_size
    319320        REAL, DIMENSION(axis_size), INTENT(IN) :: axis_value
     321        CHARACTER (len=*), INTENT(IN), OPTIONAL :: positif
     322        REAL, DIMENSION(axis_size, 2), INTENT(IN), OPTIONAL :: bnds
    320323       
    321324!        TYPE(xios_axisgroup) :: axgroup
     
    340343       
    341344        ! Ehouarn: New way to declare axis, without axis_group:
    342         CALL xios_set_axis_attr(trim(axis_id),n_glo=axis_size,value=axis_value)
     345        if (PRESENT(positif) .AND. PRESENT(bnds)) then
     346          CALL xios_set_axis_attr(trim(axis_id),n_glo=axis_size,value=axis_value, &
     347                                  positive=positif, bounds=bnds)
     348        else if (PRESENT(positif)) then
     349          CALL xios_set_axis_attr(trim(axis_id),n_glo=axis_size,value=axis_value, &
     350                                  positive=positif)
     351        else if (PRESENT(bnds)) then
     352          CALL xios_set_axis_attr(trim(axis_id),n_glo=axis_size,value=axis_value, &
     353                                  bounds=bnds)
     354        else
     355          CALL xios_set_axis_attr(trim(axis_id),n_glo=axis_size,value=axis_value)
     356        endif
    343357
    344358        !Vérification:
Note: See TracChangeset for help on using the changeset viewer.