Ignore:
Timestamp:
Apr 24, 2023, 6:11:11 PM (19 months ago)
Author:
evignon
Message:

modif for polar runs: control of the maximum latitude at which the polar filter is active (new key in .def files)
+ dependency of ratqs upon resolution (cell area)

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

Legend:

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

    r4009 r4519  
    77           qtc_cv, sigt_cv, zqsat,             &
    88           tke,tke_dissip,lmix,wprime, &
    9            t2m,q2m,fm_therm, &
     9           t2m,q2m,fm_therm,cell_area,&
    1010           ratqs,ratqsc,ratqs_inter)
    1111
     
    3737real, dimension(klon,klev),intent(in) :: wake_deltaq,wake_s
    3838real, dimension(klon,nbsrf),intent(in) :: t2m,q2m
     39real, dimension(klon), intent(in) :: cell_area
    3940! Output
    4041real, dimension(klon,klev),intent(inout) :: ratqs,ratqsc,ratqs_inter
     
    4748real facteur,zfratqs1,zfratqs2
    4849real, dimension(klon,klev) :: ratqs_hetero,ratqs_oro,ratqs_tke
    49 
     50real resol,resolmax,fact
    5051
    5152!-------------------------------------------------------------------------
     
    142143           *( tanh( (ratqsp0-pplay(:,k))/ratqsdp) + 1.)
    143144         enddo
     145
     146
     147      else if (iflag_ratqs==5) then
     148! Dependency of ratqs on model resolution
     149! Audran, Meryl, Lea, Gwendal and Etienne
     150! April 2023
     151        resolmax=sqrt(maxval(cell_area))
     152         do k=1,klev
     153            do i=1,klon
     154              resol=sqrt(cell_area(i))
     155              fact=sqrt(resol/resolmax)
     156              ratqss(i,k)=ratqsbas*fact+0.5*(ratqshaut-ratqsbas)*fact &
     157              *( tanh( (ratqsp0-pplay(i,k))/ratqsdp) + 1.)
     158           enddo
     159         enddo
     160
    144161
    145162       else if (iflag_ratqs .GT. 9) then
  • LMDZ6/trunk/libf/phylmd/physiq_mod.F90

    r4516 r4519  
    36243624         ptconv,ptconvth,clwcon0th, rnebcon0th,     &
    36253625         paprs,pplay,t_seri,q_seri, qtc_cv, sigt_cv, zqsat, &
    3626          pbl_tke(:,:,is_ave),tke_dissip_ave,l_mix_ave,wprime_ave,t2m,q2m,fm_therm, &
     3626         pbl_tke(:,:,is_ave),tke_dissip_ave,l_mix_ave,wprime_ave,t2m,q2m,fm_therm,cell_area, &
    36273627         ratqs,ratqsc,ratqs_inter)
    36283628
Note: See TracChangeset for help on using the changeset viewer.