Changeset 4003


Ignore:
Timestamp:
Nov 9, 2021, 5:26:20 PM (3 years ago)
Author:
Laurent Fairhead
Message:

Resolving some isotope issues introduced by r3999
LF

Location:
LMDZ6/trunk/libf/phylmdiso
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmdiso/phys_local_var_mod.F90

    r3940 r4003  
    557557      REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: cldemi, cldfra, cldtau, fiwc, fl, re, flwc
    558558!$OMP THREADPRIVATE(cldemi, cldfra, cldtau, fiwc, fl, re, flwc)
     559      REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: qlth, qith
     560!$OMP THREADPRIVATE(qlth, qith)
    559561      REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: ref_liq, ref_ice, theta, zphi
    560562!$OMP THREADPRIVATE(ref_liq, ref_ice, theta, zphi)
     
    898900      ALLOCATE(rain_lsc(klon))
    899901      ALLOCATE(rain_num(klon))
     902      ALLOCATE(qlth(klon,klev), qith(klon,klev))
     903      !
    900904#ifdef ISO
    901905      ALLOCATE(xtevap(ntraciso,klon))
     
    12681272      DEALLOCATE(rain_lsc)
    12691273      DEALLOCATE(rain_num)
     1274      DEALLOCATE(qlth, qith)
    12701275!
    12711276      DEALLOCATE(sens_x, sens_w)
  • LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90

    r3989 r4003  
    7575    USE VERTICAL_LAYERS_MOD, ONLY: aps,bps, ap, bp
    7676    USE write_field_phy
     77    USE lscp_mod, ONLY : lscp
    7778
    7879    !USE cmp_seri_mod
     
    10591060    !IM cf. AM 081204 BEG
    10601061    LOGICAL ptconvth(klon,klev)
     1062
     1063    REAL picefra(klon,klev)
    10611064    !IM cf. AM 081204 END
    10621065    !
     
    45624565!ISO
    45634566
     4567    picefra(:,:)=0.
     4568
     4569    IF (ok_new_lscp) THEN
     4570
     4571    CALL lscp(phys_tstep,paprs,pplay, &
     4572         t_seri, q_seri,ptconv,ratqs, &
     4573         d_t_lsc, d_q_lsc, d_ql_lsc, d_qi_lsc, rneb, cldliq, picefra, &
     4574         rain_lsc, snow_lsc, &
     4575         pfrac_impa, pfrac_nucl, pfrac_1nucl, &
     4576         frac_impa, frac_nucl, beta_prec_fisrt, &
     4577         prfl, psfl, rhcl,  &
     4578         zqasc, fraca,ztv,zpspsk,ztla,zthl,iflag_cld_th, &
     4579         iflag_ice_thermo)
     4580
     4581    ELSE
    45644582    CALL fisrtilp(phys_tstep,paprs,pplay, &
    45654583         t_seri, q_seri,ptconv,ratqs, &
     
    45764594#endif     
    45774595     &   )
     4596    ENDIF
    45784597    !
    45794598    WHERE (rain_lsc < 0) rain_lsc = 0.
     
    52955314          ENDIF
    52965315          CALL newmicro (flag_aerosol, ok_cdnc, bl95_b0, bl95_b1, &
    5297                paprs, pplay, t_seri, cldliq, cldfra, &
     5316               paprs, pplay, t_seri, cldliq, picefra, cldfra, &
    52985317               cldtau, cldemi, cldh, cldl, cldm, cldt, cldq, &
    52995318               flwp, fiwp, flwc, fiwc, &
     
    53035322       ELSE
    53045323          CALL nuage (paprs, pplay, &
    5305                t_seri, cldliq, cldfra, cldtau, cldemi, &
     5324               t_seri, cldliq, picefra, cldfra, cldtau, cldemi, &
    53065325               cldh, cldl, cldm, cldt, cldq, &
    53075326               ok_aie, &
Note: See TracChangeset for help on using the changeset viewer.