1 | |
---|
2 | ! $Header$ |
---|
3 | |
---|
4 | SUBROUTINE calbeta(dtime,indice,knon,snow,qsol, & |
---|
5 | vbeta,vcal,vdif) |
---|
6 | |
---|
7 | USE dimphy |
---|
8 | USE indice_sol_mod |
---|
9 | USE lmdz_flux_arp, ONLY: fsens, flat, betaevap, ust, tg, ok_flux_surf, ok_prescr_ust, ok_prescr_beta, ok_forc_tsurf |
---|
10 | |
---|
11 | IMPLICIT NONE |
---|
12 | |
---|
13 | !====================================================================== |
---|
14 | ! Auteur(s): Z.X. Li (LMD/CNRS) (adaptation du GCM au LMD) |
---|
15 | ! date: 19940414 |
---|
16 | !====================================================================== |
---|
17 | |
---|
18 | ! Calculer quelques parametres pour appliquer la couche limite |
---|
19 | ! ------------------------------------------------------------ |
---|
20 | ! Variables d'entrees |
---|
21 | !**************************************************************************************** |
---|
22 | REAL, INTENT(IN) :: dtime |
---|
23 | INTEGER, INTENT(IN) :: indice |
---|
24 | INTEGER, INTENT(IN) :: knon |
---|
25 | REAL, DIMENSION(klon), INTENT(IN) :: snow |
---|
26 | REAL, DIMENSION(klon), INTENT(IN) :: qsol |
---|
27 | |
---|
28 | |
---|
29 | ! Variables de sorties |
---|
30 | !**************************************************************************************** |
---|
31 | REAL, DIMENSION(klon), INTENT(OUT) :: vbeta |
---|
32 | REAL, DIMENSION(klon), INTENT(OUT) :: vcal |
---|
33 | REAL, DIMENSION(klon), INTENT(OUT) :: vdif |
---|
34 | |
---|
35 | ! Variables locales |
---|
36 | !**************************************************************************************** |
---|
37 | REAL, PARAMETER :: tau_gl=86400.0*5.0 ! temps de relaxation pour la glace de mer |
---|
38 | !cc PARAMETER (tau_gl=86400.0*30.0) |
---|
39 | REAL, PARAMETER :: mx_eau_sol=150.0 |
---|
40 | REAL, PARAMETER :: calsol=1.0/(2.5578E+06*0.15) |
---|
41 | REAL, PARAMETER :: calsno=1.0/(2.3867E+06*0.15) |
---|
42 | REAL, PARAMETER :: calice=1.0/(5.1444E+06*0.15) |
---|
43 | |
---|
44 | INTEGER :: i |
---|
45 | |
---|
46 | !**************************************************************************************** |
---|
47 | |
---|
48 | vbeta(:) = 0.0 |
---|
49 | vcal(:) = 0.0 |
---|
50 | vdif(:) = 0.0 |
---|
51 | |
---|
52 | IF (indice==is_oce) THEN |
---|
53 | DO i = 1, knon |
---|
54 | vcal(i) = 0.0 |
---|
55 | vbeta(i) = 1.0 |
---|
56 | vdif(i) = 0.0 |
---|
57 | ENDDO |
---|
58 | ENDIF |
---|
59 | |
---|
60 | IF (indice==is_sic) THEN |
---|
61 | DO i = 1, knon |
---|
62 | vcal(i) = calice |
---|
63 | IF (snow(i) > 0.0) vcal(i) = calsno |
---|
64 | vbeta(i) = 1.0 |
---|
65 | vdif(i) = 1.0/tau_gl |
---|
66 | ! vdif(i) = calice/tau_gl ! c'etait une erreur |
---|
67 | ENDDO |
---|
68 | ENDIF |
---|
69 | |
---|
70 | IF (indice==is_ter) THEN |
---|
71 | DO i = 1, knon |
---|
72 | vcal(i) = calsol |
---|
73 | IF (snow(i) > 0.0) vcal(i) = calsno |
---|
74 | vbeta(i) = MIN(2.0*qsol(i)/mx_eau_sol, 1.0) |
---|
75 | vdif(i) = 0.0 |
---|
76 | ENDDO |
---|
77 | ENDIF |
---|
78 | |
---|
79 | IF (indice==is_lic) THEN |
---|
80 | DO i = 1, knon |
---|
81 | vcal(i) = calice |
---|
82 | IF (snow(i) > 0.0) vcal(i) = calsno |
---|
83 | vbeta(i) = 1.0 |
---|
84 | vdif(i) = 0.0 |
---|
85 | ENDDO |
---|
86 | ENDIF |
---|
87 | |
---|
88 | ! EV: when beta is prescribed for 1D cases: |
---|
89 | IF (knon==1 .AND. ok_prescr_beta) THEN |
---|
90 | DO i = 1, knon |
---|
91 | vbeta(i)=betaevap |
---|
92 | ENDDO |
---|
93 | ENDIF |
---|
94 | |
---|
95 | END SUBROUTINE calbeta |
---|
96 | |
---|
97 | |
---|
98 | |
---|
99 | |
---|
100 | |
---|
101 | |
---|
102 | |
---|
103 | |
---|
104 | |
---|
105 | |
---|
106 | |
---|
107 | |
---|
108 | |
---|
109 | |
---|
110 | |
---|
111 | |
---|
112 | |
---|