Changeset 3171 for LMDZ6/trunk/libf


Ignore:
Timestamp:
Feb 1, 2018, 10:12:38 AM (7 years ago)
Author:
jyg
Message:

Update of the various connvection frequency
variables:
ftime_con, ftime_deepcv, ftime_th

Location:
LMDZ6/trunk/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/phys_output_ctrlout_mod.F90

    r3167 r3171  
    15051505  TYPE(ctrl_out), SAVE :: o_mc = ctrl_out((/ 4, 5, 10, 10, 10, 10, 11, 11, 11, 11/), &
    15061506    'mc', 'Convective mass flux', 'kg/m2/s', (/ ('', i=1, 10) /))
     1507  TYPE(ctrl_out), SAVE :: o_ftime_deepcv = ctrl_out((/ 4, 10, 10, 10, 10, 10, 11, 11, 11, 11/), &
     1508    'ftime_deepcv', 'Fraction of time deep convection Occurs', ' ', (/ ('', i=1, 10) /))
    15071509  TYPE(ctrl_out), SAVE :: o_ftime_con = ctrl_out((/ 4, 10, 10, 10, 10, 10, 11, 11, 11, 11/), &
    15081510    'ftime_con', 'Fraction of time convection Occurs', ' ', (/ ('', i=1, 10) /))
  • LMDZ6/trunk/libf/phylmd/phys_output_write_mod.F90

    r3167 r3171  
    7272         o_ptop, o_fbase, o_plcl, o_plfc, &
    7373         o_wbeff, o_convoccur, o_cape_max, o_upwd, o_ep,o_epmax_diag, o_Ma, &
    74          o_dnwd, o_dnwd0, o_ftime_con, o_mc, &
     74         o_dnwd, o_dnwd0, o_ftime_deepcv, o_ftime_con, o_mc, &
    7575         o_prw, o_prlw, o_prsw, o_s_pblh, o_s_pblt, o_s_lcl, &
    7676         o_s_therm, o_uSTDlevs, o_vSTDlevs, &
     
    402402    INTEGER :: itau_w
    403403    INTEGER :: i, iinit, iinitend=1, iff, iq, iiq, nsrf, k, ll, naero
    404     REAL, DIMENSION (klon) :: zx_tmp_fi2d
     404    REAL, DIMENSION (klon) :: zx_tmp_fi2d, zpt_conv2d
    405405    REAL, DIMENSION (klon,klev) :: zx_tmp_fi3d, zpt_conv
    406406    REAL, DIMENSION (klon,klev+1) :: zx_tmp_fi3d1
     
    977977          CALL histwrite_phy(o_dnwd, dnwd)
    978978          CALL histwrite_phy(o_dnwd0, dnwd0)
    979 !!          IF (vars_defined)         zx_tmp_fi2d=float(itau_con)/float(itap)
    980 !!          CALL histwrite_phy(o_ftime_con, zx_tmp_fi2d)
    981           IF (vars_defined) THEN
    982              zx_tmp_fi2d(:) = 0.
    983              DO k=1,klev
    984                WHERE (ptconv(:,k)) zx_tmp_fi2d(:) = 1.
    985              ENDDO
    986           ENDIF
    987           CALL histwrite_phy(o_ftime_con, zx_tmp_fi2d)
     979          !! The part relative to the frequency of occurence of convection
     980          !! is now grouped with the part relative to thermals and shallow
     981          !! convection (output of the 3 fields: ftime_deepcv, ftime_th and
     982          !!  ftime_con).
    988983          IF (vars_defined) THEN
    989984             IF (iflag_thermals>=1)THEN
     
    16431638          CALL histwrite_phy(o_plulst, plul_st)
    16441639          IF (vars_defined) THEN
     1640             do i=1,klon
     1641                zx_tmp_fi2d(1:klon)=lmax_th(:)
     1642             enddo
     1643          ENDIF
     1644          CALL histwrite_phy(o_lmaxth, zx_tmp_fi2d)
     1645          IF (vars_defined) THEN
    16451646             DO k=1,klev
    16461647                DO i=1,klon
     
    16541655          ENDIF
    16551656          CALL histwrite_phy(o_ptconvth, zx_tmp_fi3d)
    1656           IF (vars_defined) THEN
    1657              do i=1,klon
    1658                 zx_tmp_fi2d(1:klon)=lmax_th(:)
    1659              enddo
    1660           ENDIF
    1661           CALL histwrite_phy(o_lmaxth, zx_tmp_fi2d)
    16621657       ENDIF ! iflag_thermals>=1
     1658!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     1659       zpt_conv = 0.
     1660       WHERE (ptconv) zpt_conv = 1.
     1661       CALL histwrite_phy(o_ptconv, zpt_conv)
     1662!!       IF (vars_defined)         zx_tmp_fi2d=float(itau_con)/float(itap)
     1663!!       CALL histwrite_phy(o_ftime_con, zx_tmp_fi2d)
     1664       IF (vars_defined) THEN
     1665          zpt_conv2d(:) = 0.
     1666          DO k=1,klev
     1667            WHERE (ptconv(:,k)) zpt_conv2d(:) = 1.
     1668          ENDDO
     1669       ENDIF
     1670       CALL histwrite_phy(o_ftime_deepcv, zpt_conv2d)
     1671       IF (vars_defined) THEN
     1672          zx_tmp_fi2d(:) = 0.
     1673          DO k=1,klev
     1674            WHERE (ptconvth(:,k)) zx_tmp_fi2d(:) = 1.
     1675          ENDDO
     1676       ENDIF
     1677       CALL histwrite_phy(o_ftime_th, zx_tmp_fi2d)
     1678       IF (vars_defined) THEN
     1679           zx_tmp_fi2d(:) = max(zx_tmp_fi2d(:),zpt_conv2d(:))
     1680       ENDIF
     1681       CALL histwrite_phy(o_ftime_con, zx_tmp_fi2d)
    16631682!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    16641683       IF (vars_defined) zx_tmp_fi3d(1:klon,1:klev)=d_t_vdf(1:klon,1:klev)/pdtphys
     
    16761695       CALL water_int(klon,klev,zx_tmp_fi3d,zmasse,zx_tmp_fi2d)
    16771696       CALL histwrite_phy(o_dqeva2d, zx_tmp_fi2d)
    1678        zpt_conv = 0.
    1679        WHERE (ptconv) zpt_conv = 1.
    1680        CALL histwrite_phy(o_ptconv, zpt_conv)
    16811697       CALL histwrite_phy(o_ratqs, ratqs)
    16821698       IF (vars_defined) THEN
     
    16961712       IF (iflag_thermals>=1) THEN
    16971713          ! Pour l instant 0 a y reflichir pour les thermiques
    1698           zx_tmp_fi2d=0.
    1699           CALL histwrite_phy(o_ftime_th, zx_tmp_fi2d)
     1714          ! regroupe avec ftime_deepcv et ftime_con
     1715          !!zx_tmp_fi2d=0.
     1716          !!CALL histwrite_phy(o_ftime_th, zx_tmp_fi2d)
    17001717          CALL histwrite_phy(o_f_th, fm_therm)
    17011718          CALL histwrite_phy(o_e_th, entr_therm)
Note: See TracChangeset for help on using the changeset viewer.