[5246] | 1 | ! Subroutine that calculates the effect of precipitation in scavenging |
---|
| 2 | ! WITHIN the cloud, for large scale as well as convective precipitation |
---|
| 3 | SUBROUTINE incloud_scav_lsc(lminmax,qmin,qmax,masse,henry,kk,prfl, & |
---|
| 4 | psfl,pmflxr,pmflxs,zrho,zdz,t_seri,pdtphys, & |
---|
| 5 | his_dhlsc,his_dhcon1,tr_seri) |
---|
[2630] | 6 | |
---|
[5292] | 7 | USE chem_mod_h |
---|
| 8 | USE dimphy |
---|
[5246] | 9 | USE infotrac |
---|
| 10 | USE indice_sol_mod |
---|
[2630] | 11 | |
---|
[5271] | 12 | USE dimensions_mod, ONLY: iim, jjm, llm, ndm |
---|
[5285] | 13 | USE paramet_mod_h |
---|
| 14 | USE yomcst_mod_h |
---|
[5271] | 15 | IMPLICIT NONE |
---|
[2630] | 16 | |
---|
[5271] | 17 | |
---|
[2630] | 18 | |
---|
[5272] | 19 | |
---|
[5274] | 20 | |
---|
[5246] | 21 | !============================= INPUT =================================== |
---|
| 22 | REAL :: qmin, qmax |
---|
| 23 | REAL :: masse(nbtr) |
---|
| 24 | REAL :: henry(nbtr) !--cste de Henry mol/l/atm |
---|
| 25 | REAL :: kk(nbtr) !--coefficient de var avec T (K) |
---|
| 26 | REAL :: prfl(klon,klev+1), psfl(klon,klev+1) !--large-scale |
---|
| 27 | ! REAL prfl(klon,klev), psfl(klon,klev) !--large-scale |
---|
| 28 | REAL :: pmflxr(klon,klev+1), pmflxs(klon,klev+1) !--convection |
---|
| 29 | ! REAL pmflxr(klon,klev), pmflxs(klon,klev) !--convection |
---|
| 30 | REAL :: zrho(klon,klev), zdz(klon,klev) |
---|
| 31 | REAL :: t_seri(klon,klev) |
---|
| 32 | LOGICAL :: lminmax |
---|
| 33 | REAL :: pdtphys |
---|
| 34 | ! REAL prfl(klon,klev+1), psfl(klon,klev+1) !--large-scale ! Titane |
---|
| 35 | ! REAL pmflxr(klon,klev+1), pmflxs(klon,klev+1) !--convection ! Titane |
---|
| 36 | !============================= OUTPUT ================================== |
---|
| 37 | REAL :: tr_seri(klon,klev,nbtr) ! traceur |
---|
| 38 | REAL :: aux_var1(klon,klev) ! traceur |
---|
| 39 | REAL :: aux_var2(klon) ! traceur |
---|
| 40 | REAL :: aux_var3(klon) ! traceur |
---|
| 41 | REAL :: his_dhlsc(klon,nbtr) ! in-cloud scavenging lsc |
---|
| 42 | REAL :: his_dhcon1(klon,nbtr) ! in-cloud scavenging con |
---|
| 43 | !========================= LOCAL VARIABLES ============================= |
---|
| 44 | INTEGER :: it, i, j |
---|
[2630] | 45 | |
---|
[5246] | 46 | EXTERNAL minmaxqfi, inscav_spl |
---|
| 47 | DO it=1, nbtr |
---|
| 48 | ! |
---|
| 49 | DO i=1,klon |
---|
| 50 | aux_var2(i)=his_dhlsc(i,it) |
---|
| 51 | aux_var3(i)=his_dhcon1(i,it) |
---|
| 52 | ENDDO |
---|
| 53 | DO j=1,klev |
---|
| 54 | DO i=1,klon |
---|
| 55 | aux_var1(i,j)=tr_seri(i,j,it) |
---|
| 56 | ENDDO |
---|
| 57 | ENDDO |
---|
| 58 | ! |
---|
| 59 | IF (lminmax) THEN |
---|
| 60 | CALL minmaxqfi(aux_var1,qmin,qmax,'avt inscav') |
---|
| 61 | !nhl CALL minmaxqfi(tr_seri(1,1,it),qmin,qmax,'avt inscav') |
---|
| 62 | ENDIF |
---|
| 63 | ! |
---|
| 64 | !nhl CALL inscav_spl(pdtphys,it,masse(it),henry(it),kk(it),0.5e-3, |
---|
| 65 | !nhl . prfl,psfl,zrho,zdz,t_seri,tr_seri(1,1,it), |
---|
| 66 | !nhl . his_dhlsc(1,it)) |
---|
| 67 | CALL inscav_spl(pdtphys,it,masse(it),henry(it),kk(it),0.5e-3, & |
---|
| 68 | prfl,psfl,zrho,zdz,t_seri,aux_var1,aux_var2) |
---|
| 69 | ! |
---|
| 70 | IF (lminmax) THEN |
---|
| 71 | CALL minmaxqfi(aux_var1,qmin,qmax,'depot humide lsc') |
---|
| 72 | !nhl CALL minmaxqfi(tr_seri(1,1,it),qmin,qmax,'depot humide lsc') |
---|
| 73 | ENDIF |
---|
| 74 | ! |
---|
| 75 | ! |
---|
| 76 | !-scheme for convective in-cloud scavenging |
---|
| 77 | ! |
---|
| 78 | !nhl CALL inscav_spl(pdtphys,it,masse(it),henry(it),kk(it),1.e-3, |
---|
| 79 | !nhl . pmflxr,pmflxs,zrho,zdz,t_seri,tr_seri(1,1,it), |
---|
| 80 | !nhl . his_dhcon1(1,it)) |
---|
[2630] | 81 | |
---|
[5246] | 82 | ! print *,'JE inscav0' |
---|
| 83 | ! IF (iflag_con.LT.3) THEN |
---|
| 84 | ! |
---|
| 85 | ! print *,'JE inscav1' |
---|
| 86 | ! print *,'iflag_con',iflag_con |
---|
| 87 | ! CALL inscav_spl(pdtphys,it,masse(it),henry(it),kk(it),1.e-3, |
---|
| 88 | ! . pmflxr,pmflxs,zrho,zdz,t_seri,aux_var1,aux_var3) |
---|
| 89 | ! |
---|
| 90 | !c |
---|
| 91 | ! IF (lminmax) THEN |
---|
| 92 | ! CALL minmaxqfi(aux_var1,qmin,qmax,'depot humide con') |
---|
| 93 | !cnhl CALL minmaxqfi(tr_seri(1,1,it),qmin,qmax,'depot humide con') |
---|
| 94 | ! |
---|
| 95 | ! ENDIF |
---|
| 96 | ! |
---|
| 97 | ! ENDIF ! iflag_con |
---|
[2630] | 98 | |
---|
[5246] | 99 | ! |
---|
| 100 | ! print *,'JE inscav2' |
---|
| 101 | DO j=1,klev |
---|
| 102 | DO i=1,klon |
---|
| 103 | tr_seri(i,j,it)=aux_var1(i,j) |
---|
| 104 | ENDDO |
---|
| 105 | ENDDO |
---|
| 106 | DO i=1,klon |
---|
| 107 | his_dhlsc(i,it)=aux_var2(i) |
---|
| 108 | his_dhcon1(i,it)=aux_var3(i) |
---|
| 109 | ENDDO |
---|
[2630] | 110 | |
---|
[5246] | 111 | ! |
---|
| 112 | ENDDO !--boucle sur it |
---|
| 113 | |
---|
| 114 | ! print *,'JE inscav3' |
---|
| 115 | END SUBROUTINE incloud_scav_lsc |
---|