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/phylmd/phys_output_write_mod.F90

    r3002 r3003  
    2929    USE mod_grid_phy_lmdz, ONLY : nbp_lon, nbp_lat
    3030    USE time_phylmdz_mod, ONLY: day_step_phy, start_time, itau_phy
     31    USE vertical_layers_mod, ONLY : ap, bp, aps, bps
    3132    USE phys_output_ctrlout_mod, ONLY: o_phis, o_aire, is_ter, is_lic, is_oce, &
     33         o_Ahyb, o_Bhyb,o_Ahyb_inter, o_Bhyb_inter, &
    3234         is_ave, is_sic, o_contfracATM, o_contfracOR, &
    3335         o_aireTER, o_flat, o_slp, o_ptstar, o_pt0, o_tsol, &
     
    392394    REAL, PARAMETER :: dobson_u = 2.1415e-05 ! Dobson unit, in kg m-2
    393395!   REAL, PARAMETER :: missing_val=nf90_fill_real
     396    REAL, DIMENSION(klev,2) :: Ahyb_bounds, Bhyb_bounds
     397    INTEGER :: ilev
    394398#ifndef CPP_XIOS
    395399    REAL :: missing_val
     
    418422       iinitend = 1
    419423    ENDIF
     424
     425    DO ilev=1,klev
     426      Ahyb_bounds(ilev,1) = ap(ilev)
     427      Ahyb_bounds(ilev,2) = ap(ilev+1)
     428      Bhyb_bounds(ilev,1) = bp(ilev)
     429      Bhyb_bounds(ilev,2) = bp(ilev+1)
     430    END DO
    420431
    421432#ifdef CPP_XIOS
     
    531542       CALL histwrite_phy("R_incl",R_incl)
    532543       CALL histwrite_phy("solaire",solaire)
     544       CALL histwrite_phy(o_Ahyb, aps)
     545       CALL histwrite_phy(o_Bhyb, bps)
     546       CALL histwrite_phy(o_Ahyb_inter, Ahyb_bounds)
     547       CALL histwrite_phy(o_Bhyb_inter, Bhyb_bounds)
    533548!
    534549#ifdef CPP_RRTM
Note: See TracChangeset for help on using the changeset viewer.