Changeset 3856 for LMDZ6/trunk/libf/phylmd/calcratqs.F90
- Timestamp:
- Feb 25, 2021, 7:02:16 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/calcratqs.F90
r2534 r3856 2 2 iflag_ratqs,iflag_con,iflag_cld_th,pdtphys, & 3 3 ratqsbas,ratqshaut,ratqsp0,ratqsdp, & 4 tau_ratqs,fact_cldcon, &4 tau_ratqs,fact_cldcon,wake_s, wake_deltaq, & 5 5 ptconv,ptconvth,clwcon0th, rnebcon0th, & 6 6 paprs,pplay,q_seri,zqsat,fm_therm, & 7 ratqs,ratqsc )7 ratqs,ratqsc,ratqs_inter) 8 8 9 9 implicit none … … 27 27 logical, dimension(klon,klev),intent(in) :: ptconv 28 28 real, dimension(klon,klev),intent(in) :: rnebcon0th,clwcon0th 29 29 real, dimension(klon,klev),intent(in) :: wake_deltaq,wake_s 30 30 ! Output 31 real, dimension(klon,klev),intent(inout) :: ratqs,ratqsc 31 real, dimension(klon,klev),intent(inout) :: ratqs,ratqsc,ratqs_inter 32 32 logical, dimension(klon,klev),intent(inout) :: ptconvth 33 33 … … 124 124 enddo 125 125 126 else if (iflag_ratqs==4) then 126 else if (iflag_ratqs==4) then 127 127 do k=1,klev 128 128 ratqss(:,k)=ratqsbas+0.5*(ratqshaut-ratqsbas) & … … 131 131 enddo 132 132 133 else if (iflag_ratqs==10) then ! ratqs interactif dépendant de la présence de poches froides 134 call calcratqs_inter(klon,klev,pdtphys,ratqsbas,wake_deltaq,wake_s,q_seri,ratqs_inter) 135 do k=1,klev 136 do i=1, klon 137 ratqss(i,k)=ratqs_inter(i,k)+0.5*(ratqshaut-ratqs_inter(i,k)) & 138 *( tanh( (ratqsp0-pplay(i,k))/ratqsdp) + 1.) 139 enddo 140 enddo 141 133 142 endif 134 135 136 143 137 144
Note: See TracChangeset
for help on using the changeset viewer.