Ignore:
Timestamp:
Feb 2, 2018, 11:50:14 AM (7 years ago)
Author:
Laurent Fairhead
Message:

Inclusion of changesets 3167 and 3171 from trunk into branch

Location:
LMDZ6/branches/IPSLCM6.0.15/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/IPSLCM6.0.15/libf/phylmd/phys_output_ctrlout_mod.F90

    r3164 r3177  
     1!
     2! $Id$
     3!
    14MODULE phys_output_ctrlout_mod
    25
     
    15051508  TYPE(ctrl_out), SAVE :: o_mc = ctrl_out((/ 4, 5, 10, 10, 10, 10, 11, 11, 11, 11/), &
    15061509    'mc', 'Convective mass flux', 'kg/m2/s', (/ ('', i=1, 10) /))
     1510  TYPE(ctrl_out), SAVE :: o_ftime_deepcv = ctrl_out((/ 4, 10, 10, 10, 10, 10, 11, 11, 11, 11/), &
     1511    'ftime_deepcv', 'Fraction of time deep convection Occurs', ' ', (/ ('', i=1, 10) /))
    15071512  TYPE(ctrl_out), SAVE :: o_ftime_con = ctrl_out((/ 4, 10, 10, 10, 10, 10, 11, 11, 11, 11/), &
    1508     'ftime_con', 'Fraction of time convection Occurs', ' ',                 &
    1509       (/ 'inst(X)', 'inst(X)', 'inst(X)', 'inst(X)', 'inst(X)', &
    1510          'inst(X)', 'inst(X)', 'inst(X)', 'inst(X)', 'inst(X)' /))
     1513    'ftime_con', 'Fraction of time convection Occurs', ' ', (/ ('', i=1, 10) /))
     1514!!jyg    'ftime_con', 'Fraction of time convection Occurs', ' ',                 &
     1515!!jyg      (/ 'inst(X)', 'inst(X)', 'inst(X)', 'inst(X)', 'inst(X)', &
     1516!!jyg         'inst(X)', 'inst(X)', 'inst(X)', 'inst(X)', 'inst(X)' /))
    15111517  TYPE(ctrl_out), SAVE :: o_dtdyn = ctrl_out((/ 4, 10, 10, 10, 10, 10, 11, 11, 11, 11/), &
    15121518    'dtdyn', 'Dynamics dT', 'K/s', (/ ('', i=1, 10) /))
  • LMDZ6/branches/IPSLCM6.0.15/libf/phylmd/phys_output_write_mod.F90

    r3164 r3177  
    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)
     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).
    981983          IF (vars_defined) THEN
    982984             IF (iflag_thermals>=1)THEN
    983                 zx_tmp_fi3d=dnwd+dnwd0+upwd+fm_therm(:,1:klev)
     985                zx_tmp_fi3d=-dnwd+dnwd0+upwd+fm_therm(:,1:klev)
    984986             ELSE
    985                 zx_tmp_fi3d=dnwd+dnwd0+upwd
     987                zx_tmp_fi3d=-dnwd+dnwd0+upwd
    986988             ENDIF
    987989          ENDIF
     
    16361638          CALL histwrite_phy(o_plulst, plul_st)
    16371639          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
    16381646             DO k=1,klev
    16391647                DO i=1,klon
     
    16471655          ENDIF
    16481656          CALL histwrite_phy(o_ptconvth, zx_tmp_fi3d)
    1649           IF (vars_defined) THEN
    1650              do i=1,klon
    1651                 zx_tmp_fi2d(1:klon)=lmax_th(:)
    1652              enddo
    1653           ENDIF
    1654           CALL histwrite_phy(o_lmaxth, zx_tmp_fi2d)
    16551657       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)
    16561682!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    16571683       IF (vars_defined) zx_tmp_fi3d(1:klon,1:klev)=d_t_vdf(1:klon,1:klev)/pdtphys
     
    16691695       CALL water_int(klon,klev,zx_tmp_fi3d,zmasse,zx_tmp_fi2d)
    16701696       CALL histwrite_phy(o_dqeva2d, zx_tmp_fi2d)
    1671        zpt_conv = 0.
    1672        WHERE (ptconv) zpt_conv = 1.
    1673        CALL histwrite_phy(o_ptconv, zpt_conv)
    16741697       CALL histwrite_phy(o_ratqs, ratqs)
    16751698       IF (vars_defined) THEN
     
    16891712       IF (iflag_thermals>=1) THEN
    16901713          ! Pour l instant 0 a y reflichir pour les thermiques
    1691           zx_tmp_fi2d=0.
    1692           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)
    16931717          CALL histwrite_phy(o_f_th, fm_therm)
    16941718          CALL histwrite_phy(o_e_th, entr_therm)
Note: See TracChangeset for help on using the changeset viewer.