1 | SUBROUTINE SUGWD(NLON,NLEV,paprs,pplay) |
---|
2 | C |
---|
3 | C |
---|
4 | C**** *SUGWD* INITIALIZE COMMON YOEGWD CONTROLLING GRAVITY WAVE DRAG |
---|
5 | C |
---|
6 | C PURPOSE. |
---|
7 | C -------- |
---|
8 | C INITIALIZE YOEGWD, THE COMMON THAT CONTROLS THE |
---|
9 | C GRAVITY WAVE DRAG PARAMETRIZATION. |
---|
10 | C VERY IMPORTANT: |
---|
11 | C ______________ |
---|
12 | C THIS ROUTINE SET_UP THE "TUNABLE PARAMETERS" OF THE |
---|
13 | C VARIOUS SSO SCHEMES |
---|
14 | C |
---|
15 | C** INTERFACE. |
---|
16 | C ---------- |
---|
17 | C CALL *SUGWD* FROM *SUPHEC* |
---|
18 | C ----- ------ |
---|
19 | C (called not from suphec but from first call of physiq.F) |
---|
20 | C |
---|
21 | C EXPLICIT ARGUMENTS : |
---|
22 | C -------------------- |
---|
23 | C PAPRS,PPLAY : Pressure at semi and full model levels |
---|
24 | C NLEV : number of model levels |
---|
25 | c NLON : number of points treated in the physics |
---|
26 | C |
---|
27 | C IMPLICIT ARGUMENTS : |
---|
28 | C -------------------- |
---|
29 | C COMMON YOEGWD |
---|
30 | C-GFRCRIT-R: Critical Non-dimensional mountain Height |
---|
31 | C (HNC in (1), LOTT 1999) |
---|
32 | C-GKWAKE--R: Bluff-body drag coefficient for low level wake |
---|
33 | C (Cd in (2), LOTT 1999) |
---|
34 | C-GRCRIT--R: Critical Richardson Number |
---|
35 | C (Ric, End of first column p791 of LOTT 1999) |
---|
36 | C-GKDRAG--R: Gravity wave drag coefficient |
---|
37 | C (G in (3), LOTT 1999) |
---|
38 | C-GKLIFT--R: Mountain Lift coefficient |
---|
39 | C (Cl in (4), LOTT 1999) |
---|
40 | C-GHMAX---R: Not used |
---|
41 | C-GRAHILO-R: Set-up the trapped waves fraction |
---|
42 | C (Beta , End of first column, LOTT 1999) |
---|
43 | C |
---|
44 | C-GSIGCR--R: Security value for blocked flow depth |
---|
45 | C-NKTOPG--I: Security value for blocked flow level |
---|
46 | C-NTOP----I: An estimate to qualify the upper levels of |
---|
47 | C the model where one wants to impose strees |
---|
48 | C profiles |
---|
49 | C-GSSECC--R: Security min value for low-level B-V frequency |
---|
50 | C-GTSEC---R: Security min value for anisotropy and GW stress. |
---|
51 | C-GVSEC---R: Security min value for ulow |
---|
52 | C |
---|
53 | C |
---|
54 | C METHOD. |
---|
55 | C ------- |
---|
56 | C SEE DOCUMENTATION |
---|
57 | C |
---|
58 | C EXTERNALS. |
---|
59 | C ---------- |
---|
60 | C NONE |
---|
61 | C |
---|
62 | C REFERENCE. |
---|
63 | C ---------- |
---|
64 | C Lott, 1999: Alleviation of stationary biases in a GCM through... |
---|
65 | C Monthly Weather Review, 127, pp 788-801. |
---|
66 | C |
---|
67 | C AUTHOR. |
---|
68 | C ------- |
---|
69 | C FRANCOIS LOTT *LMD* |
---|
70 | C |
---|
71 | C MODIFICATIONS. |
---|
72 | C -------------- |
---|
73 | C ORIGINAL : 90-01-01 (MARTIN MILLER, ECMWF) |
---|
74 | C LAST: 99-07-09 (FRANCOIS LOTT,LMD) |
---|
75 | C ------------------------------------------------------------------ |
---|
76 | use dimphy |
---|
77 | IMPLICIT NONE |
---|
78 | |
---|
79 | #include "YOEGWD.h" |
---|
80 | C |
---|
81 | C ARGUMENTS |
---|
82 | integer nlon,nlev |
---|
83 | REAL paprs(nlon,nlev+1) |
---|
84 | REAL pplay(nlon,nlev) |
---|
85 | C |
---|
86 | INTEGER JK |
---|
87 | REAL ZPR,ZTOP,ZSIGT,ZPM1R |
---|
88 | |
---|
89 | C |
---|
90 | C* 1. SET THE VALUES OF THE PARAMETERS |
---|
91 | C -------------------------------- |
---|
92 | C |
---|
93 | 100 CONTINUE |
---|
94 | C |
---|
95 | PRINT *,' DANS SUGWD NLEV=',NLEV |
---|
96 | GHMAX=10000. |
---|
97 | C |
---|
98 | ZPR=100000. |
---|
99 | ZTOP=0.001 |
---|
100 | c valeurs dans la dernière routine de FLott |
---|
101 | c ZSIGT=0.94 |
---|
102 | c valeurs dans les routines Mars |
---|
103 | ZSIGT=0.85 |
---|
104 | C |
---|
105 | Coff CALL gather(pplay,pplay_glo) |
---|
106 | Coff CALL bcast(pplay_glo) |
---|
107 | Coff CALL gather(paprs,paprs_glo) |
---|
108 | Coff CALL bcast(paprs_glo) |
---|
109 | |
---|
110 | DO 110 JK=1,NLEV |
---|
111 | Coff ZPM1R=pplay_glo(klon_glo/2,jk)/paprs_glo(klon_glo/2,1) |
---|
112 | ZPM1R=pplay(klon/2,jk)/paprs(klon/2,1) |
---|
113 | IF(ZPM1R.GE.ZSIGT)THEN |
---|
114 | nktopg=JK |
---|
115 | ENDIF |
---|
116 | Coff ZPM1R=pplay_glo(klon_glo/2,jk)/paprs_glo(klon_glo/2,1) |
---|
117 | ZPM1R=pplay(klon/2,jk)/paprs(klon/2,1) |
---|
118 | IF(ZPM1R.GE.ZTOP)THEN |
---|
119 | ntop=JK |
---|
120 | ENDIF |
---|
121 | 110 CONTINUE |
---|
122 | c |
---|
123 | c inversion car dans orodrag on compte les niveaux a l'envers |
---|
124 | nktopg=nlev-nktopg+1 |
---|
125 | ntop=nlev-ntop |
---|
126 | print *,' DANS SUGWD nktopg=', nktopg |
---|
127 | print *,' DANS SUGWD ntop=', ntop |
---|
128 | C |
---|
129 | GSIGCR=0.80 |
---|
130 | C |
---|
131 | c valeurs dans la dernière routine de FLott |
---|
132 | c GKDRAG=0.1875 |
---|
133 | c GRAHILO=0.1 |
---|
134 | c GRCRIT=1.00 |
---|
135 | c GFRCRIT=1.00 |
---|
136 | c GKWAKE=0.50 |
---|
137 | C |
---|
138 | c GKLIFT=0.25 |
---|
139 | c GVCRIT =0.1 |
---|
140 | |
---|
141 | c valeurs dans les routines Mars |
---|
142 | c GKDRAG=0.1 |
---|
143 | c GRAHILO=1.0 |
---|
144 | c GRCRIT=0.25 |
---|
145 | c GFRCRIT=1.00 |
---|
146 | c GKWAKE=1.0 |
---|
147 | C |
---|
148 | C VENUS |
---|
149 | GKDRAG=0.5 ! G |
---|
150 | GRAHILO=1.0 ! beta - useless |
---|
151 | GRCRIT=0.25 ! Ric - useless |
---|
152 | GFRCRIT=1.0 ! Hnc |
---|
153 | GKWAKE=1.0 ! Cd |
---|
154 | TAUBS=2.0 ! VENUS: stress threshold is 2 Pa |
---|
155 | !TAUBS=1.0 ! VENUS: stress threshold is 1 Pa |
---|
156 | !TAUBS=0.5 ! VENUS: stress threshold is 0.5 Pa |
---|
157 | LEVBS=nlev-9 ! VENUS: level release is 9 |
---|
158 | !LEVBS=nlev-19 ! VENUS: level release is 19 |
---|
159 | !LEVBS=nlev-13 ! VENUS: level release is 13 |
---|
160 | |
---|
161 | GKLIFT=0.25 |
---|
162 | GVCRIT =0.0 |
---|
163 | |
---|
164 | WRITE(UNIT=6,FMT='('' *** SSO essential constants ***'')') |
---|
165 | WRITE(UNIT=6,FMT='('' *** SPECIFIED IN SUGWD ***'')') |
---|
166 | WRITE(UNIT=6,FMT='('' Gravity wave ct '',E14.7,'' '')')GKDRAG |
---|
167 | WRITE(UNIT=6,FMT='('' Trapped/total wave dag '',E14.7,'' '')') |
---|
168 | S GRAHILO |
---|
169 | WRITE(UNIT=6,FMT='('' Critical Richardson = '',E14.7,'' '')') |
---|
170 | S GRCRIT |
---|
171 | WRITE(UNIT=6,FMT='('' Critical Froude'',e14.7)') GFRCRIT |
---|
172 | WRITE(UNIT=6,FMT='('' Low level Wake bluff cte'',e14.7)') GKWAKE |
---|
173 | WRITE(UNIT=6,FMT='('' Low level lift cte'',e14.7)') GKLIFT |
---|
174 | |
---|
175 | WRITE(UNIT=6,FMT='('' VENUS: Mountain stress threshold'',E14.7)') |
---|
176 | S TAUBS |
---|
177 | WRITE(UNIT=6,FMT='('' VENUS: Level release'',I5)') nlev - LEVBS |
---|
178 | C |
---|
179 | C |
---|
180 | C ---------------------------------------------------------------- |
---|
181 | C |
---|
182 | C* 2. SET VALUES OF SECURITY PARAMETERS |
---|
183 | C --------------------------------- |
---|
184 | C |
---|
185 | 200 CONTINUE |
---|
186 | C |
---|
187 | c valeurs dans la dernière routine de FLott |
---|
188 | c GVSEC=0.10 |
---|
189 | c GSSEC=0.0001 |
---|
190 | C |
---|
191 | c GTSEC=0.00001 |
---|
192 | C |
---|
193 | c valeurs dans les routines Mars |
---|
194 | GVSEC=0.10 |
---|
195 | GSSEC=1.e-12 |
---|
196 | C |
---|
197 | GTSEC=1.e-7 |
---|
198 | C |
---|
199 | RETURN |
---|
200 | END |
---|
201 | |
---|