27 |
use comconst, only: dtphys |
use comconst, only: dtphys |
28 |
USE comgeomphy, ONLY: airephy |
USE comgeomphy, ONLY: airephy |
29 |
USE concvl_m, ONLY: concvl |
USE concvl_m, ONLY: concvl |
30 |
USE conf_gcm_m, ONLY: offline, day_step, iphysiq, lmt_pas |
USE conf_gcm_m, ONLY: offline, lmt_pas |
31 |
USE conf_phys_m, ONLY: conf_phys |
USE conf_phys_m, ONLY: conf_phys |
32 |
use conflx_m, only: conflx |
use conflx_m, only: conflx |
33 |
USE ctherm, ONLY: iflag_thermals, nsplit_thermals |
USE ctherm, ONLY: iflag_thermals, nsplit_thermals |
37 |
USE dimsoil, ONLY: nsoilmx |
USE dimsoil, ONLY: nsoilmx |
38 |
use drag_noro_m, only: drag_noro |
use drag_noro_m, only: drag_noro |
39 |
use dynetat0_m, only: day_ref, annee_ref |
use dynetat0_m, only: day_ref, annee_ref |
40 |
USE fcttre, ONLY: foeew, qsatl, qsats, thermcep |
USE fcttre, ONLY: foeew, qsatl, qsats |
41 |
use fisrtilp_m, only: fisrtilp |
use fisrtilp_m, only: fisrtilp |
42 |
USE hgardfou_m, ONLY: hgardfou |
USE hgardfou_m, ONLY: hgardfou |
43 |
USE histsync_m, ONLY: histsync |
USE histsync_m, ONLY: histsync |
286 |
REAL zx_t, zx_qs, zcor |
REAL zx_t, zx_qs, zcor |
287 |
real zqsat(klon, llm) |
real zqsat(klon, llm) |
288 |
INTEGER i, k, iq, nsrf |
INTEGER i, k, iq, nsrf |
|
REAL, PARAMETER:: t_coup = 234. |
|
289 |
REAL zphi(klon, llm) |
REAL zphi(klon, llm) |
290 |
|
|
291 |
! cf. Anne Mathieu, variables pour la couche limite atmosphérique (hbtm) |
! cf. Anne Mathieu, variables pour la couche limite atmosphérique (hbtm) |
295 |
REAL, SAVE:: capCL(klon, nbsrf) ! CAPE de couche limite |
REAL, SAVE:: capCL(klon, nbsrf) ! CAPE de couche limite |
296 |
REAL, SAVE:: oliqCL(klon, nbsrf) ! eau_liqu integree de couche limite |
REAL, SAVE:: oliqCL(klon, nbsrf) ! eau_liqu integree de couche limite |
297 |
REAL, SAVE:: cteiCL(klon, nbsrf) ! cloud top instab. crit. couche limite |
REAL, SAVE:: cteiCL(klon, nbsrf) ! cloud top instab. crit. couche limite |
298 |
REAL, SAVE:: pblt(klon, nbsrf) ! T a la Hauteur de couche limite |
REAL, SAVE:: pblt(klon, nbsrf) ! T \`a la hauteur de couche limite |
299 |
REAL, SAVE:: therm(klon, nbsrf) |
REAL, SAVE:: therm(klon, nbsrf) |
300 |
REAL, SAVE:: trmb1(klon, nbsrf) ! deep_cape |
REAL, SAVE:: trmb1(klon, nbsrf) ! deep_cape |
301 |
REAL, SAVE:: trmb2(klon, nbsrf) ! inhibition |
REAL, SAVE:: trmb2(klon, nbsrf) ! inhibition |
396 |
! temperature and humidity at 2 m |
! temperature and humidity at 2 m |
397 |
|
|
398 |
REAL, save:: u10m(klon, nbsrf), v10m(klon, nbsrf) ! vents a 10 m |
REAL, save:: u10m(klon, nbsrf), v10m(klon, nbsrf) ! vents a 10 m |
399 |
REAL zt2m(klon), zq2m(klon) ! temp., hum. 2 m moyenne s/ 1 maille |
REAL zt2m(klon), zq2m(klon) ! température, humidité 2 m moyenne sur 1 maille |
400 |
REAL zu10m(klon), zv10m(klon) ! vents a 10 m moyennes s/1 maille |
REAL zu10m(klon), zv10m(klon) ! vents a 10 m moyennes sur 1 maille |
401 |
|
|
402 |
! Aerosol effects: |
! Aerosol effects: |
403 |
|
|
471 |
capCL =0. ! CAPE de couche limite |
capCL =0. ! CAPE de couche limite |
472 |
oliqCL =0. ! eau_liqu integree de couche limite |
oliqCL =0. ! eau_liqu integree de couche limite |
473 |
cteiCL =0. ! cloud top instab. crit. couche limite |
cteiCL =0. ! cloud top instab. crit. couche limite |
474 |
pblt =0. ! T a la Hauteur de couche limite |
pblt =0. |
475 |
therm =0. |
therm =0. |
476 |
trmb1 =0. ! deep_cape |
trmb1 =0. ! deep_cape |
477 |
trmb2 =0. ! inhibition |
trmb2 =0. ! inhibition |
727 |
clwcon0 = qcondc |
clwcon0 = qcondc |
728 |
mfu = upwd + dnwd |
mfu = upwd + dnwd |
729 |
|
|
730 |
IF (thermcep) THEN |
zqsat = MIN(0.5, r2es * FOEEW(t_seri, rtt >= t_seri) / play) |
731 |
zqsat = MIN(0.5, r2es * FOEEW(t_seri, rtt >= t_seri) / play) |
zqsat = zqsat / (1. - retv * zqsat) |
|
zqsat = zqsat / (1. - retv * zqsat) |
|
|
ELSE |
|
|
zqsat = merge(qsats(t_seri), qsatl(t_seri), t_seri < t_coup) / play |
|
|
ENDIF |
|
732 |
|
|
733 |
! Properties of convective clouds |
! Properties of convective clouds |
734 |
clwcon0 = fact_cldcon * clwcon0 |
clwcon0 = fact_cldcon * clwcon0 |
928 |
DO k = 1, llm |
DO k = 1, llm |
929 |
DO i = 1, klon |
DO i = 1, klon |
930 |
zx_t = t_seri(i, k) |
zx_t = t_seri(i, k) |
931 |
IF (thermcep) THEN |
zx_qs = r2es * FOEEW(zx_t, rtt >= zx_t) / play(i, k) |
932 |
zx_qs = r2es * FOEEW(zx_t, rtt >= zx_t) / play(i, k) |
zx_qs = MIN(0.5, zx_qs) |
933 |
zx_qs = MIN(0.5, zx_qs) |
zcor = 1. / (1. - retv * zx_qs) |
934 |
zcor = 1. / (1. - retv * zx_qs) |
zx_qs = zx_qs * zcor |
|
zx_qs = zx_qs * zcor |
|
|
ELSE |
|
|
IF (zx_t < t_coup) THEN |
|
|
zx_qs = qsats(zx_t) / play(i, k) |
|
|
ELSE |
|
|
zx_qs = qsatl(zx_t) / play(i, k) |
|
|
ENDIF |
|
|
ENDIF |
|
935 |
zx_rh(i, k) = q_seri(i, k) / zx_qs |
zx_rh(i, k) = q_seri(i, k) / zx_qs |
936 |
zqsat(i, k) = zx_qs |
zqsat(i, k) = zx_qs |
937 |
ENDDO |
ENDDO |