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 | GKDRAG=0.1 |
---|
143 | GRAHILO=1.0 |
---|
144 | GRCRIT=0.25 |
---|
145 | GFRCRIT=1.00 |
---|
146 | GKWAKE=1.0 |
---|
147 | C |
---|
148 | GKLIFT=0.25 |
---|
149 | GVCRIT =0.0 |
---|
150 | |
---|
151 | WRITE(UNIT=6,FMT='('' *** SSO essential constants ***'')') |
---|
152 | WRITE(UNIT=6,FMT='('' *** SPECIFIED IN SUGWD ***'')') |
---|
153 | WRITE(UNIT=6,FMT='('' Gravity wave ct '',E13.7,'' '')')GKDRAG |
---|
154 | WRITE(UNIT=6,FMT='('' Trapped/total wave dag '',E13.7,'' '')') |
---|
155 | S GRAHILO |
---|
156 | WRITE(UNIT=6,FMT='('' Critical Richardson = '',E13.7,'' '')') |
---|
157 | S GRCRIT |
---|
158 | WRITE(UNIT=6,FMT='('' Critical Froude'',e13.7)') GFRCRIT |
---|
159 | WRITE(UNIT=6,FMT='('' Low level Wake bluff cte'',e13.7)') GKWAKE |
---|
160 | WRITE(UNIT=6,FMT='('' Low level lift cte'',e13.7)') GKLIFT |
---|
161 | |
---|
162 | C |
---|
163 | C |
---|
164 | C ---------------------------------------------------------------- |
---|
165 | C |
---|
166 | C* 2. SET VALUES OF SECURITY PARAMETERS |
---|
167 | C --------------------------------- |
---|
168 | C |
---|
169 | 200 CONTINUE |
---|
170 | C |
---|
171 | c valeurs dans la dernière routine de FLott |
---|
172 | c GVSEC=0.10 |
---|
173 | c GSSEC=0.0001 |
---|
174 | C |
---|
175 | c GTSEC=0.00001 |
---|
176 | C |
---|
177 | c valeurs dans les routines Mars |
---|
178 | GVSEC=0.10 |
---|
179 | GSSEC=1.e-12 |
---|
180 | C |
---|
181 | GTSEC=1.e-7 |
---|
182 | C |
---|
183 | RETURN |
---|
184 | END |
---|
185 | |
---|