12 |
solswai) |
solswai) |
13 |
|
|
14 |
! From LMDZ4/libf/phylmd/radlwsw.F, version 1.4 2005/06/06 13:16:33 |
! From LMDZ4/libf/phylmd/radlwsw.F, version 1.4 2005/06/06 13:16:33 |
15 |
! Author: Z. X. Li (LMD/CNRS) date: 1996/07/19 |
! Author: Z. X. Li (LMD/CNRS) |
16 |
! Objet : interface entre le modèle et les rayonnements |
! Date: 1996/07/19 |
17 |
! Rayonnements solaire et infrarouge |
|
18 |
|
! Objet : interface entre le modèle et les rayonnements solaire et |
19 |
|
! infrarouge |
20 |
|
|
21 |
|
! ATTENTION: swai and swad have to be interpreted in the following manner: |
22 |
|
|
23 |
|
! not ok_ade and not ok_aie |
24 |
|
! both are zero |
25 |
|
|
26 |
|
! ok_ade and not ok_aie |
27 |
|
! aerosol direct forcing is F_{AD} = topsw - topswad |
28 |
|
! indirect is zero |
29 |
|
|
30 |
|
! not ok_ade and ok_aie |
31 |
|
! aerosol indirect forcing is F_{AI} = topsw - topswai |
32 |
|
! direct is zero |
33 |
|
|
34 |
|
! ok_ade and ok_aie |
35 |
|
! aerosol indirect forcing is F_{AI} = topsw - topswai |
36 |
|
! aerosol direct forcing is F_{AD} = topswai - topswad |
37 |
|
|
38 |
USE dimphy, ONLY: klev, klon |
USE dimphy, ONLY: klev, klon |
39 |
USE clesphys, ONLY: bug_ozone, solaire |
USE clesphys, ONLY: bug_ozone, solaire |
43 |
use sw_m, only: sw |
use sw_m, only: sw |
44 |
|
|
45 |
! Arguments: |
! Arguments: |
46 |
|
|
47 |
|
real rmu0(klon), fract(klon), dist |
48 |
! dist-----input-R- distance astronomique terre-soleil |
! dist-----input-R- distance astronomique terre-soleil |
49 |
! rmu0-----input-R- cosinus de l'angle zenithal |
! rmu0-----input-R- cosinus de l'angle zenithal |
50 |
! fract----input-R- duree d'ensoleillement normalisee |
! fract----input-R- duree d'ensoleillement normalisee |
51 |
! co2_ppm--input-R- concentration du gaz carbonique (en ppm) |
|
52 |
! solaire--input-R- constante solaire (W/m**2) |
real, intent(in):: paprs(klon, klev+1) |
53 |
! paprs----input-R- pression a inter-couche (Pa) |
! paprs----input-R- pression a inter-couche (Pa) |
54 |
|
real, intent(in):: pplay(klon, klev) |
55 |
! pplay----input-R- pression au milieu de couche (Pa) |
! pplay----input-R- pression au milieu de couche (Pa) |
56 |
! tsol-----input-R- temperature du sol (en K) |
real albedo(klon), alblw(klon), tsol(klon) |
57 |
! albedo---input-R- albedo du sol (entre 0 et 1) |
! albedo---input-R- albedo du sol (entre 0 et 1) |
58 |
|
! tsol-----input-R- temperature du sol (en K) |
59 |
|
real, intent(in):: t(klon, klev) |
60 |
! t--------input-R- temperature (K) |
! t--------input-R- temperature (K) |
61 |
|
real q(klon, klev) |
62 |
! q--------input-R- vapeur d'eau (en kg/kg) |
! q--------input-R- vapeur d'eau (en kg/kg) |
63 |
|
real, intent(in):: wo(klon, klev) |
64 |
! wo-------input-R- contenu en ozone (en kg/kg) correction MPL 100505 |
! wo-------input-R- contenu en ozone (en kg/kg) correction MPL 100505 |
65 |
|
real cldfra(klon, klev), cldemi(klon, klev) |
66 |
! cldfra---input-R- fraction nuageuse (entre 0 et 1) |
! cldfra---input-R- fraction nuageuse (entre 0 et 1) |
|
! cldtaupd---input-R- epaisseur optique des nuages dans le visible (present-day value) |
|
67 |
! cldemi---input-R- emissivite des nuages dans l'IR (entre 0 et 1) |
! cldemi---input-R- emissivite des nuages dans l'IR (entre 0 et 1) |
|
! ok_ade---input-L- apply the Aerosol Direct Effect or not? |
|
|
! ok_aie---input-L- apply the Aerosol Indirect Effect or not? |
|
|
! tau_ae, piz_ae, cg_ae-input-R- aerosol optical properties (calculated in aeropt.F) |
|
|
! cldtaupi-input-R- epaisseur optique des nuages dans le visible |
|
|
! calculated for pre-industrial (pi) aerosol concentrations, i.e. with smaller |
|
|
! droplet concentration, thus larger droplets, thus generally cdltaupi cldtaupd |
|
|
! it is needed for the diagnostics of the aerosol indirect radiative forcing |
|
|
|
|
|
! cool-----output-R- refroidissement dans l'IR (K/jour) |
|
|
! radsol---output-R- bilan radiatif net au sol (W/m**2) (+ vers le bas) |
|
|
! albpla---output-R- albedo planetaire (entre 0 et 1) |
|
|
! topsw----output-R- flux solaire net au sommet de l'atm. |
|
|
! toplw----output-R- ray. IR montant au sommet de l'atmosphere |
|
|
! solsw----output-R- flux solaire net a la surface |
|
|
! sollw----output-R- ray. IR montant a la surface |
|
|
! solswad---output-R- ray. solaire net absorbe a la surface (aerosol dir) |
|
|
! topswad---output-R- ray. solaire absorbe au sommet de l'atm. (aerosol dir) |
|
|
! solswai---output-R- ray. solaire net absorbe a la surface (aerosol ind) |
|
|
! topswai---output-R- ray. solaire absorbe au sommet de l'atm. (aerosol ind) |
|
|
|
|
|
! ATTENTION: swai and swad have to be interpreted in the following manner: |
|
|
! ok_ade = F & ok_aie = F -both are zero |
|
|
! ok_ade = T & ok_aie = F -aerosol direct forcing is F_{AD} = topsw-topswad |
|
|
! indirect is zero |
|
|
! ok_ade = F & ok_aie = T -aerosol indirect forcing is F_{AI} = topsw-topswai |
|
|
! direct is zero |
|
|
! ok_ade = T & ok_aie = T -aerosol indirect forcing is F_{AI} = topsw-topswai |
|
|
! aerosol direct forcing is F_{AD} = topswai-topswad |
|
68 |
|
|
69 |
real rmu0(klon), fract(klon), dist |
real cldtaupd(klon, klev) |
70 |
|
! input-R- epaisseur optique des nuages dans le visible (present-day value) |
|
real, intent(in):: paprs(klon, klev+1) |
|
|
real, intent(in):: pplay(klon, klev) |
|
|
real albedo(klon), alblw(klon), tsol(klon) |
|
|
real, intent(in):: t(klon, klev) |
|
|
real q(klon, klev) |
|
|
real, intent(in):: wo(klon, klev) |
|
|
real cldfra(klon, klev), cldemi(klon, klev), cldtaupd(klon, klev) |
|
71 |
|
|
72 |
real, intent(out):: heat(klon, klev) |
real, intent(out):: heat(klon, klev) |
73 |
! échauffement atmosphérique (visible) (K/jour) |
! échauffement atmosphérique (visible) (K/jour) |
74 |
|
|
75 |
real cool(klon, klev) |
real cool(klon, klev) |
76 |
|
! cool-----output-R- refroidissement dans l'IR (K/jour) |
77 |
real heat0(klon, klev), cool0(klon, klev) |
real heat0(klon, klev), cool0(klon, klev) |
78 |
real radsol(klon), topsw(klon), toplw(klon) |
real radsol(klon), topsw(klon) |
79 |
|
! radsol---output-R- bilan radiatif net au sol (W/m**2) (+ vers le bas) |
80 |
|
! topsw----output-R- flux solaire net au sommet de l'atm. |
81 |
|
|
82 |
|
real, intent(out):: toplw(klon) |
83 |
|
! rayonnement infrarouge montant au sommet de l'atmosphère |
84 |
|
|
85 |
real solsw(klon), sollw(klon), albpla(klon) |
real solsw(klon), sollw(klon), albpla(klon) |
86 |
real topsw0(klon), toplw0(klon), solsw0(klon), sollw0(klon) |
! solsw----output-R- flux solaire net a la surface |
87 |
|
! sollw----output-R- ray. IR montant a la surface |
88 |
|
! albpla---output-R- albedo planetaire (entre 0 et 1) |
89 |
|
real topsw0(klon), solsw0(klon), sollw0(klon) |
90 |
|
real, intent(out):: toplw0(klon) |
91 |
real sollwdown(klon) |
real sollwdown(klon) |
92 |
!IM output 3D |
!IM output 3D |
93 |
DOUBLE PRECISION ZFSUP(KDLON, KLEV+1) |
DOUBLE PRECISION ZFSUP(KDLON, KLEV+1) |
102 |
|
|
103 |
DOUBLE PRECISION zx_alpha1, zx_alpha2 |
DOUBLE PRECISION zx_alpha1, zx_alpha2 |
104 |
|
|
105 |
INTEGER k, kk, i, j, iof, nb_gr |
INTEGER k, kk, i, iof, nb_gr |
106 |
EXTERNAL lw |
EXTERNAL lw |
107 |
|
|
108 |
DOUBLE PRECISION PSCT |
DOUBLE PRECISION PSCT |
142 |
|
|
143 |
real topswad(klon), solswad(klon) |
real topswad(klon), solswad(klon) |
144 |
! output: aerosol direct forcing at TOA and surface |
! output: aerosol direct forcing at TOA and surface |
145 |
|
! topswad---output-R- ray. solaire absorbe au sommet de l'atm. (aerosol dir) |
146 |
|
! solswad---output-R- ray. solaire net absorbe a la surface (aerosol dir) |
147 |
|
|
148 |
real topswai(klon), solswai(klon) |
real topswai(klon), solswai(klon) |
149 |
! output: aerosol indirect forcing atTOA and surface |
! output: aerosol indirect forcing atTOA and surface |
150 |
|
! topswai---output-R- ray. solaire absorbe au sommet de l'atm. (aerosol ind) |
151 |
|
! solswai---output-R- ray. solaire net absorbe a la surface (aerosol ind) |
152 |
|
|
153 |
real tau_ae(klon, klev, 2), piz_ae(klon, klev, 2), cg_ae(klon, klev, 2) |
real tau_ae(klon, klev, 2), piz_ae(klon, klev, 2), cg_ae(klon, klev, 2) |
154 |
! aerosol optical properties (see aeropt.F) |
! input-R- aerosol optical properties (calculated in aeropt.F) |
155 |
|
|
156 |
real cldtaupi(klon, klev) |
real cldtaupi(klon, klev) |
157 |
! cloud optical thickness for pre-industrial aerosol concentrations |
! cloud optical thickness for pre-industrial aerosol concentrations |
158 |
! (i.e., with a smaller droplet concentrationand thus larger droplet radii) |
! (i.e. with a smaller droplet concentration and thus larger droplet radii) |
159 |
|
! -input-R- epaisseur optique des nuages dans le visible |
160 |
|
! calculated for pre-industrial (pi) aerosol concentrations, |
161 |
|
! i.e. with smaller droplet concentration, thus larger droplets, |
162 |
|
! thus generally cdltaupi cldtaupd it is needed for the |
163 |
|
! diagnostics of the aerosol indirect radiative forcing |
164 |
|
|
165 |
logical ok_ade, ok_aie |
logical ok_ade, ok_aie |
166 |
! switches whether to use aerosol direct (indirect) effects or not |
! switches whether to use aerosol direct (indirect) effects or not |
167 |
|
! ok_ade---input-L- apply the Aerosol Direct Effect or not? |
168 |
|
! ok_aie---input-L- apply the Aerosol Indirect Effect or not? |
169 |
|
|
170 |
double precision tauae(kdlon, klev, 2) ! aer opt properties |
double precision tauae(kdlon, klev, 2) ! aer opt properties |
171 |
double precision pizae(kdlon, klev, 2) |
double precision pizae(kdlon, klev, 2) |
201 |
zdist = dist |
zdist = dist |
202 |
PSCT = solaire / zdist / zdist |
PSCT = solaire / zdist / zdist |
203 |
|
|
204 |
loop_nbgr: DO j = 1, nb_gr |
loop_iof: DO iof = 0, klon - kdlon, kdlon |
|
iof = kdlon * (j - 1) |
|
|
|
|
205 |
DO i = 1, kdlon |
DO i = 1, kdlon |
206 |
zfract(i) = fract(iof+i) |
zfract(i) = fract(iof+i) |
207 |
zrmu0(i) = rmu0(iof+i) |
zrmu0(i) = rmu0(iof+i) |
366 |
cool0(iof+i, k) = zcool0(i, k)/zznormcp |
cool0(iof+i, k) = zcool0(i, k)/zznormcp |
367 |
ENDDO |
ENDDO |
368 |
ENDDO |
ENDDO |
369 |
end DO loop_nbgr |
end DO loop_iof |
370 |
|
|
371 |
END SUBROUTINE radlwsw |
END SUBROUTINE radlwsw |
372 |
|
|