Ignore:
Timestamp:
Oct 5, 2023, 4:14:22 PM (8 months ago)
Author:
Laurent Fairhead
Message:

Final (hopefully) commit from the newmicro replayisation workshop. The final USE statements that were
still included in the cloud_optics_prop routine were moved to the call_cloud_optics_prop routine that
sets up the interface between LMDZ and the parametrization.
LF for LR, MCD, AI, EV, JBM

File:
1 edited

Legend:

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

    r4707 r4715  
    7878    USE wxios, ONLY: g_ctx, wxios_set_context
    7979    USE lmdz_lscp, ONLY : lscp
    80     USE lmdz_cloud_optics_prop, ONLY : cloud_optics_prop
     80    USE lmdz_call_cloud_optics_prop, ONLY : call_cloud_optics_prop
    8181    USE lmdz_lscp_old, ONLY : fisrtilp
    8282    USE lmdz_wake_ini, ONLY : wake_ini
     
    18441844                             RCPD, RLSTT, RLVTT, RLMLT, &
    18451845                             RVTMP2, RTT,RD,RG)
     1846       ! Test de coherence sur oc_cdnc utilisé uniquement par cloud_optics_prop
     1847       IF (ok_newmicro) then
     1848          IF (iflag_rrtm.EQ.1) THEN
     1849#ifdef CPP_RRTM
     1850             IF (ok_cdnc.AND.NRADLP.NE.3) THEN
     1851             abort_message='RRTM choix incoherent NRADLP doit etre egal a 3 ' &
     1852                  // 'pour ok_cdnc'
     1853             CALL abort_physic(modname,abort_message,1)
     1854             ENDIF
     1855#else
     1856
     1857             abort_message='You should compile with -rrtm if running with '//'iflag_rrtm=1'
     1858             CALL abort_physic(modname,abort_message,1)
     1859#endif
     1860          ENDIF
     1861       ENDIF   
    18461862       CALL cloud_optics_prop_ini(klon, prt_level, lunout, flag_aerosol, &
    18471863                                  & ok_cdnc, bl95_b0, &
     
    43874403       ENDIF
    43884404
    4389        IF (ok_newmicro) then
    4390 ! AI          IF (iflag_rrtm.NE.0) THEN
    4391           IF (iflag_rrtm.EQ.1) THEN
    4392 #ifdef CPP_RRTM
    4393              IF (ok_cdnc.AND.NRADLP.NE.3) THEN
    4394              abort_message='RRTM choix incoherent NRADLP doit etre egal a 3 ' &
    4395                   // 'pour ok_cdnc'
    4396              CALL abort_physic(modname,abort_message,1)
    4397              ENDIF
    4398 #else
    4399 
    4400              abort_message='You should compile with -rrtm if running with '//'iflag_rrtm=1'
    4401              CALL abort_physic(modname,abort_message,1)
    4402 #endif
    4403           ENDIF
    4404           CALL cloud_optics_prop(klon, klev, &
     4405       !Rajout appel a interface calcul proprietes optiques des nuages
     4406       CALL call_cloud_optics_prop(klon, klev, ok_newmicro, &
    44054407               paprs, pplay, t_seri, radocond, picefra, cldfra, &
    44064408               cldtau, cldemi, cldh, cldl, cldm, cldt, cldq, &
    4407                flwp, fiwp, flwc, fiwc, &
     4409               flwp, fiwp, flwc, fiwc, ok_aie, &
    44084410               mass_solu_aero, mass_solu_aero_pi, &
    44094411               cldtaupi, distcltop, temp_cltop, re, fl, ref_liq, ref_ice, &
     
    44114413               reffclwc, cldnvi, lcc3d, lcc3dcon, lcc3dstra, icc3dcon, icc3dstra,  &
    44124414               zfice, dNovrN, ptconv, rnebcon, clwcon)
    4413        ELSE
    4414           CALL nuage (paprs, pplay, &
    4415                t_seri, radocond, picefra, cldfra, cldtau, cldemi, &
    4416                cldh, cldl, cldm, cldt, cldq, &
    4417                ok_aie, &
    4418                mass_solu_aero, mass_solu_aero_pi, &
    4419                bl95_b0, bl95_b1, distcltop, temp_cltop, &
    4420                cldtaupi, re, fl)
    4421        ENDIF
     4415
    44224416       !
    44234417       !IM betaCRF
Note: See TracChangeset for help on using the changeset viewer.