Ignore:
Timestamp:
Dec 8, 2017, 2:04:01 PM (7 years ago)
Author:
musat
Message:

Back to the 3111 svn for the moment..
Keep 2corrections in CMIP6_ping_atmos.xml
IM

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

Legend:

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

    r3113 r3117  
    1010  USE dimphy
    1111  USE phys_local_var_mod, ONLY: scdnc, cldncl, reffclwtop, lcc, reffclws, &
    12     reffclwc, cldnvi, lcc3d, lcc3dcon, lcc3dstra, icc3dcon, icc3dstra, zfice
     12    reffclwc, cldnvi, lcc3d, lcc3dcon, lcc3dstra
    1313  USE phys_state_var_mod, ONLY: rnebcon, clwcon
    1414  USE icefrac_lsc_mod ! computes ice fraction (JBM 3/14)
     
    152152  REAL zrho(klon, klev) !--rho pour la couche
    153153  REAL dh(klon, klev) !--dz pour la couche
     154  REAL zfice(klon, klev)
    154155  REAL rad_chaud(klon, klev) !--rayon pour les nuages chauds
    155156  REAL rad_chaud_pi(klon, klev) !--rayon pour les nuages chauds pre-industriels
     
    585586        lcc3dstra(i, k) = lcc3dstra(i, k) - lcc3dcon(i, k) ! eau liquide stratiforme
    586587        lcc3dstra(i, k) = max(lcc3dstra(i,k), 0.0)
    587         !
    588         icc3dcon(i, k) = rnebcon(i, k)*(1-phase3d(i, k))*clwcon(i, k) ! glace
    589                                                                       ! convective
    590         icc3dstra(i, k) = pclc(i, k)*pqlwp(i, k)*(1-phase3d(i, k))
    591         icc3dstra(i, k) = icc3dstra(i, k) - icc3dcon(i, k) ! glace stratiforme
    592         icc3dstra(i, k) = max( icc3dstra(i, k), 0.0)
    593         !
    594588        ! Compute cloud droplet radius as above in meter
    595589        radius = 1.1*((pqlwp(i,k)*pplay(i,k)/(rd*t(i,k)))/(4./3*rpi*1000.* &
     
    632626        IF (lcc3dcon(i,k)<=0.0) lcc3dcon(i, k) = 0.0
    633627        IF (lcc3dstra(i,k)<=0.0) lcc3dstra(i, k) = 0.0
    634         IF (icc3dcon(i,k)<=0.0) icc3dcon(i, k) = 0.0
    635         IF (icc3dstra(i,k)<=0.0) icc3dstra(i, k) = 0.0
    636628      END DO
    637629      IF (reffclwtop(i)<=0.0) reffclwtop(i) = 0.0
  • LMDZ6/trunk/libf/phylmd/phys_local_var_mod.F90

    r3113 r3117  
    140140      REAL, SAVE, ALLOCATABLE :: ZFSDN0(:,:),  ZFSUP0(:,:)      ! diag
    141141      !$OMP THREADPRIVATE(ZFSDN0,ZFSUP0)
    142       REAL, SAVE, ALLOCATABLE :: PSFSWDIR(:,:), PSFSWDIF(:,:)
    143       !$OMP THREADPRIVATE(PSFSWDIR, PSFSWDIF)
    144142!
    145143      REAL, SAVE, ALLOCATABLE :: stratomask(:,:)
     
    171169      REAL, SAVE, ALLOCATABLE :: lcc3dstra(:,:)
    172170      !$OMP THREADPRIVATE(lcc3dstra)
    173       REAL, SAVE, ALLOCATABLE :: icc3dstra(:,:)
    174       !$OMP THREADPRIVATE(icc3dstra)
    175       REAL, SAVE, ALLOCATABLE :: icc3dcon(:,:)
    176       !$OMP THREADPRIVATE(icc3dcon)
    177       REAL, SAVE, ALLOCATABLE :: zfice(:,:)
    178       !$OMP THREADPRIVATE(zfice)
    179171      REAL, SAVE, ALLOCATABLE :: od443aer(:)
    180172      !$OMP THREADPRIVATE(od443aer)
     
    524516USE phys_state_var_mod
    525517
    526       IMPLICIT NONE
    527       include "clesphys.h"
     518IMPLICIT NONE
    528519      ALLOCATE(t_seri(klon,klev),q_seri(klon,klev),ql_seri(klon,klev),qs_seri(klon,klev))
    529520      ALLOCATE(u_seri(klon,klev),v_seri(klon,klev))
     
    573564      ALLOCATE(ZLWFT0_i(klon,klev+1),ZSWFT0_i(klon,klev+1),ZFLDN0(klon,klev+1))
    574565      ALLOCATE(ZFLUP0(klon,klev+1),ZFSDN0(klon,klev+1),ZFSUP0(klon,klev+1))
    575       ALLOCATE(PSFSWDIR(klon,NSW), PSFSWDIF(klon,NSW))
    576566!
    577567      ALLOCATE(topswad_aero(klon), solswad_aero(klon))
     
    603593      ALLOCATE(lcc3dcon(klon, klev))
    604594      ALLOCATE(lcc3dstra(klon, klev))
    605       ALLOCATE(icc3dcon(klon, klev))
    606       ALLOCATE(icc3dstra(klon, klev))
    607       ALLOCATE(zfice(klon, klev))
    608595      ALLOCATE(od443aer(klon))
    609596      ALLOCATE(od550aer(klon))
     
    858845      DEALLOCATE(d_u_lif,d_v_lif)
    859846      DEALLOCATE(d_ts, d_tr)
    860       DEALLOCATE(ZLWFT0_i,ZSWFT0_i,ZFLDN0)
    861       DEALLOCATE(ZFLUP0,ZFSDN0,ZFSUP0)
    862       DEALLOCATE(PSFSWDIR, PSFSWDIF)
    863847      DEALLOCATE(topswad_aero,solswad_aero)
    864848      DEALLOCATE(topswai_aero,solswai_aero)
     
    884868      DEALLOCATE(lcc3dcon)
    885869      DEALLOCATE(lcc3dstra)
    886       DEALLOCATE(icc3dcon)
    887       DEALLOCATE(icc3dstra)
    888       DEALLOCATE(zfice)
    889870      DEALLOCATE(od443aer)
    890871      DEALLOCATE(od550aer)
  • LMDZ6/trunk/libf/phylmd/phys_output_ctrlout_mod.F90

    r3113 r3117  
    14471447  TYPE(ctrl_out), SAVE :: o_lcc3dstra = ctrl_out((/ 2,  6, 10, 10, 10, 10, 11, 11, 11, 11/), &
    14481448    'lcc3dstra', 'Stratiform cloud liquid fraction', '1', (/ ('', i=1, 10) /))
    1449   TYPE(ctrl_out), SAVE :: o_icc3dcon = ctrl_out((/ 2,  6, 10, 10, 10, 10, 11, 11, 11, 11/), &
    1450     'icc3dcon', 'Mass Fraction of Convective Cloud Ice', &
    1451     'kg kg-1', (/ ('', i=1, 10) /))
    1452   TYPE(ctrl_out), SAVE :: o_icc3dstra = ctrl_out((/ 2,  6, 10, 10, 10, 10, 11, 11, 11, 11/), &
    1453     'icc3dstra', 'Mass Fraction of Stratiform Cloud Ice', &
    1454     'kg kg-1', (/ ('', i=1, 10) /))
    1455   TYPE(ctrl_out), SAVE :: o_cldicemxrat = ctrl_out((/ 2,  6, 10, 10, 10, 10, 11, 11, 11, 11/), &
    1456     'cldicemxrat', 'Cloud Ice Mixing Ratio', &
    1457     '1', (/ ('', i=1, 10) /))
    1458   TYPE(ctrl_out), SAVE :: o_cldwatmxrat = ctrl_out((/ 2,  6, 10, 10, 10, 10, 11, 11, 11, 11/), &
    1459     'cldwatmxrat', 'Cloud Water Mixing Ratio', &
    1460     '1', (/ ('', i=1, 10) /))
    14611449  TYPE(ctrl_out), SAVE :: o_solbnd = ctrl_out((/ 2,  6, 10, 10, 10, 10, 11, 11, 11, 11/), &
    14621450    'solbnd', 'Top-of-Atmosphere Solar Insolation for each band', 'W m-2', (/ ('', i=1, 10) /))
    1463   TYPE(ctrl_out), SAVE :: o_rsdsdiff = ctrl_out((/ 2,  6, 10, 10, 10, 10, 11, 11, 11, 11/), &
    1464     'rsdsdiff', 'Surface Diffuse Downwelling Shortwave Radiation', 'W m-2', (/ ('', i=1, 10) /))
    1465   TYPE(ctrl_out), SAVE :: o_rsdscsdiff = ctrl_out((/ 2,  6, 10, 10, 10, 10, 11, 11, 11, 11/), &
    1466     'rsdscsdiff', 'Surface Diffuse Downwelling Clear Sky Shortwave Radiation', 'W m-2', (/ ('', i=1, 10) /))
    14671451  TYPE(ctrl_out), SAVE :: o_stratomask = ctrl_out((/ 2,  6, 10, 10, 10, 10, 11, 11, 11, 11/), &
    14681452    'stratomask', 'Stratospheric fraction', '1', (/ ('', i=1, 10) /))
  • LMDZ6/trunk/libf/phylmd/phys_output_write_mod.F90

    r3113 r3117  
    120120         o_swtoacf_zero, o_swsrfcf_zero, &
    121121         o_topswai, o_solswai, o_toplwai, o_sollwai, o_scdnc, &
    122          o_cldncl, o_reffclws, o_reffclwc, o_solbnd, &
    123          o_rsdsdiff, o_rsdscsdiff, o_stratomask,&
     122         o_cldncl, o_reffclws, o_reffclwc, o_solbnd, o_stratomask,&
    124123         o_cldnvi, o_lcc, o_lcc3d, o_lcc3dcon, &
    125          o_lcc3dstra, o_icc3dcon, o_icc3dstra, &
    126          o_cldicemxrat, o_cldwatmxrat, o_reffclwtop, o_ec550aer, &
     124         o_lcc3dstra, o_reffclwtop, o_ec550aer, &
    127125         o_lwcon, o_iwcon, o_temp, o_theta, &
    128126         o_ovapinit, o_ovap, o_oliq, o_ocond, o_geop, &
     
    279277         toplwad_aero, toplwad0_aero, sollwad_aero, &
    280278         sollwad0_aero, toplwai_aero, sollwai_aero, &
    281          scdnc, cldncl, reffclws, reffclwc, cldnvi, &
    282          PSFSWDIR, PSFSWDIF, stratomask,&
    283          lcc, lcc3d, lcc3dcon, lcc3dstra, icc3dcon, icc3dstra, &
    284          zfice, reffclwtop, &
     279         scdnc, cldncl, reffclws, reffclwc, cldnvi, stratomask,&
     280         lcc, lcc3d, lcc3dcon, lcc3dstra, reffclwtop, &
    285281         ec550aer, flwc, fiwc, t_seri, theta, q_seri, &
    286282         ql_seri, qs_seri, tr_seri, &
     
    14101406          CALL histwrite_phy(o_lcc3dcon, lcc3dcon)
    14111407          CALL histwrite_phy(o_lcc3dstra, lcc3dstra)
    1412           CALL histwrite_phy(o_icc3dcon, icc3dcon)
    1413           CALL histwrite_phy(o_icc3dstra, icc3dstra)
    1414           CALL histwrite_phy(o_cldicemxrat, zfice)
    1415           zx_tmp_fi3d(:,:)=1-zfice(:,:)
    1416           CALL histwrite_phy(o_cldwatmxrat, zx_tmp_fi3d)
    14171408          CALL histwrite_phy(o_reffclwtop, reffclwtop)
    14181409       ENDIF
     
    14411432#ifdef CPP_RRTM
    14421433      IF (iflag_rrtm.EQ.1) THEN
    1443 
    14441434       IF (vars_defined) THEN
    14451435        DO ISW=1, NSW
     
    14481438        CALL histwrite_phy(o_solbnd, zx_tmp_fi3dsp)
    14491439       ENDIF
    1450 
    1451        IF (vars_defined) THEN
    1452         CALL histwrite_phy(o_rsdscsdiff, PSFSWDIR)
    1453        ENDIF
    1454 
    1455        IF (vars_defined) THEN
    1456         CALL histwrite_phy(o_rsdsdiff, PSFSWDIF)
    1457        ENDIF
    1458 
    14591440      ENDIF
    14601441#endif
  • LMDZ6/trunk/libf/phylmd/physiq_mod.F90

    r3112 r3117  
    8080       ZLWFT0_i,ZSWFT0_i,ZFLDN0,  &
    8181       ZFLUP0,ZFSDN0,ZFSUP0,      &
    82        PSFSWDIR, PSFSWDIF, &
    8382       !
    8483       topswad_aero,solswad_aero,   &
     
    37933792                                !-end
    37943793               ZLWFT0_i, ZFLDN0, ZFLUP0, &
    3795                ZSWFT0_i, ZFSDN0, ZFSUP0, &
    3796                PSFSWDIR, PSFSWDIF)
     3794               ZSWFT0_i, ZFSDN0, ZFSUP0)
    37973795
    37983796          !lwoff=y, betalwoff=1. : offset LW CRE for radiation code and other
     
    38783876                                !-end
    38793877                     ZLWFT0_i, ZFLDN0, ZFLUP0, &
    3880                      ZSWFT0_i, ZFSDN0, ZFSUP0, &
    3881                      PSFSWDIR, PSFSWDIF)
     3878                     ZSWFT0_i, ZFSDN0, ZFSUP0)
    38823879          endif !ok_4xCO2atm
    38833880       ENDIF ! aerosol_couple
  • LMDZ6/trunk/libf/phylmd/radlwsw_m.F90

    r3112 r3117  
    4242!-end
    4343   ZLWFT0_i, ZFLDN0, ZFLUP0,&
    44    ZSWFT0_i, ZFSDN0, ZFSUP0,&
    45    PSFSWDIR, PSFSWDIF)
     44   ZSWFT0_i, ZFSDN0, ZFSUP0)
    4645
    4746
Note: See TracChangeset for help on using the changeset viewer.