--- trunk/libf/phylmd/Radlwsw/radlwsw.f90 2011/10/07 13:11:58 53 +++ trunk/libf/phylmd/Radlwsw/radlwsw.f90 2013/07/08 18:12:18 71 @@ -12,80 +12,83 @@ solswai) ! From LMDZ4/libf/phylmd/radlwsw.F, version 1.4 2005/06/06 13:16:33 - ! Author: Z. X. Li (LMD/CNRS) date: 1996/07/19 - ! Objet : interface entre le modèle et les rayonnements - ! Rayonnements solaire et infrarouge + ! Author: Z. X. Li (LMD/CNRS) + ! Date: 1996/07/19 + + ! Objet : interface entre le modèle et les rayonnements solaire et + ! infrarouge + + ! ATTENTION: swai and swad have to be interpreted in the following manner: + + ! not ok_ade and not ok_aie + ! both are zero + + ! ok_ade and not ok_aie + ! aerosol direct forcing is F_{AD} = topsw - topswad + ! indirect is zero + + ! not ok_ade and ok_aie + ! aerosol indirect forcing is F_{AI} = topsw - topswai + ! direct is zero + + ! ok_ade and ok_aie + ! aerosol indirect forcing is F_{AI} = topsw - topswai + ! aerosol direct forcing is F_{AD} = topswai - topswad - USE dimphy, ONLY: klev, klon USE clesphys, ONLY: bug_ozone, solaire - USE suphec_m, ONLY: rg + USE dimphy, ONLY: klev, klon + use lw_m, only: lw USE raddim, ONLY: kdlon - USE yoethf_m, ONLY: rvtmp2 + USE suphec_m, ONLY: rg use sw_m, only: sw + USE yoethf_m, ONLY: rvtmp2 ! Arguments: + + real rmu0(klon), fract(klon), dist ! dist-----input-R- distance astronomique terre-soleil ! rmu0-----input-R- cosinus de l'angle zenithal ! fract----input-R- duree d'ensoleillement normalisee - ! co2_ppm--input-R- concentration du gaz carbonique (en ppm) - ! solaire--input-R- constante solaire (W/m**2) + + real, intent(in):: paprs(klon, klev+1) ! paprs----input-R- pression a inter-couche (Pa) + real, intent(in):: pplay(klon, klev) ! pplay----input-R- pression au milieu de couche (Pa) - ! tsol-----input-R- temperature du sol (en K) + real albedo(klon), alblw(klon), tsol(klon) ! albedo---input-R- albedo du sol (entre 0 et 1) + ! tsol-----input-R- temperature du sol (en K) + real, intent(in):: t(klon, klev) ! t--------input-R- temperature (K) + real q(klon, klev) ! q--------input-R- vapeur d'eau (en kg/kg) + real, intent(in):: wo(klon, klev) ! wo-------input-R- contenu en ozone (en kg/kg) correction MPL 100505 + real cldfra(klon, klev), cldemi(klon, klev) ! cldfra---input-R- fraction nuageuse (entre 0 et 1) - ! cldtaupd---input-R- epaisseur optique des nuages dans le visible (present-day value) ! 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 - - real rmu0(klon), fract(klon), dist - 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) + real cldtaupd(klon, klev) + ! input-R- epaisseur optique des nuages dans le visible (present-day value) real, intent(out):: heat(klon, klev) ! échauffement atmosphérique (visible) (K/jour) real cool(klon, klev) + ! cool-----output-R- refroidissement dans l'IR (K/jour) real heat0(klon, klev), cool0(klon, klev) - real radsol(klon), topsw(klon), toplw(klon) + real radsol(klon), topsw(klon) + ! radsol---output-R- bilan radiatif net au sol (W/m**2) (+ vers le bas) + ! topsw----output-R- flux solaire net au sommet de l'atm. + + real, intent(out):: toplw(klon) + ! rayonnement infrarouge montant au sommet de l'atmosphère + real solsw(klon), sollw(klon), albpla(klon) - real topsw0(klon), toplw0(klon), solsw0(klon), sollw0(klon) + ! solsw----output-R- flux solaire net a la surface + ! sollw----output-R- ray. IR montant a la surface + ! albpla---output-R- albedo planetaire (entre 0 et 1) + real topsw0(klon), solsw0(klon), sollw0(klon) + real, intent(out):: toplw0(klon) real sollwdown(klon) !IM output 3D DOUBLE PRECISION ZFSUP(KDLON, KLEV+1) @@ -99,10 +102,7 @@ DOUBLE PRECISION ZFLDN0(KDLON, KLEV+1) DOUBLE PRECISION zx_alpha1, zx_alpha2 - - INTEGER k, kk, i, j, iof, nb_gr - EXTERNAL lw - + INTEGER k, kk, i, iof, nb_gr DOUBLE PRECISION PSCT DOUBLE PRECISION PALBD(kdlon, 2), PALBP(kdlon, 2) @@ -140,19 +140,30 @@ real topswad(klon), solswad(klon) ! output: aerosol direct forcing at TOA and surface + ! topswad---output-R- ray. solaire absorbe au sommet de l'atm. (aerosol dir) + ! solswad---output-R- ray. solaire net absorbe a la surface (aerosol dir) real topswai(klon), solswai(klon) ! output: aerosol indirect forcing atTOA and surface + ! topswai---output-R- ray. solaire absorbe au sommet de l'atm. (aerosol ind) + ! solswai---output-R- ray. solaire net absorbe a la surface (aerosol ind) real tau_ae(klon, klev, 2), piz_ae(klon, klev, 2), cg_ae(klon, klev, 2) - ! aerosol optical properties (see aeropt.F) + ! input-R- aerosol optical properties (calculated in aeropt.F) real cldtaupi(klon, klev) ! cloud optical thickness for pre-industrial aerosol concentrations - ! (i.e., with a smaller droplet concentrationand thus larger droplet radii) + ! (i.e. with a smaller droplet concentration and thus larger droplet radii) + ! -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 logical ok_ade, ok_aie ! switches whether to use aerosol direct (indirect) effects or not + ! ok_ade---input-L- apply the Aerosol Direct Effect or not? + ! ok_aie---input-L- apply the Aerosol Indirect Effect or not? double precision tauae(kdlon, klev, 2) ! aer opt properties double precision pizae(kdlon, klev, 2) @@ -188,9 +199,7 @@ zdist = dist PSCT = solaire / zdist / zdist - loop_nbgr: DO j = 1, nb_gr - iof = kdlon * (j - 1) - + loop_iof: DO iof = 0, klon - kdlon, kdlon DO i = 1, kdlon zfract(i) = fract(iof+i) zrmu0(i) = rmu0(iof+i) @@ -355,7 +364,7 @@ cool0(iof+i, k) = zcool0(i, k)/zznormcp ENDDO ENDDO - end DO loop_nbgr + end DO loop_iof END SUBROUTINE radlwsw