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 "dimensions.h" |
---|
80 | #include "paramet.h" |
---|
81 | |
---|
82 | #include "YOEGWD.h" |
---|
83 | C |
---|
84 | C ARGUMENTS |
---|
85 | integer nlon,nlev |
---|
86 | REAL paprs(nlon,nlev+1) |
---|
87 | REAL pplay(nlon,nlev) |
---|
88 | C |
---|
89 | INTEGER JK |
---|
90 | REAL ZPR,ZTOP,ZSIGT,ZPM1R |
---|
91 | |
---|
92 | C |
---|
93 | C* 1. SET THE VALUES OF THE PARAMETERS |
---|
94 | C -------------------------------- |
---|
95 | C |
---|
96 | 100 CONTINUE |
---|
97 | C |
---|
98 | PRINT *,' DANS SUGWD NLEV=',NLEV |
---|
99 | GHMAX=10000. |
---|
100 | C |
---|
101 | ZPR=100000. |
---|
102 | ZTOP=0.001 |
---|
103 | c valeurs dans la dernière routine de FLott |
---|
104 | c ZSIGT=0.94 |
---|
105 | c valeurs dans les routines Mars |
---|
106 | ZSIGT=0.85 |
---|
107 | C |
---|
108 | Coff CALL gather(pplay,pplay_glo) |
---|
109 | Coff CALL bcast(pplay_glo) |
---|
110 | Coff CALL gather(paprs,paprs_glo) |
---|
111 | Coff CALL bcast(paprs_glo) |
---|
112 | |
---|
113 | DO 110 JK=1,NLEV |
---|
114 | Coff ZPM1R=pplay_glo(klon_glo/2,jk)/paprs_glo(klon_glo/2,1) |
---|
115 | ZPM1R=pplay(klon/2,jk)/paprs(klon/2,1) |
---|
116 | IF(ZPM1R.GE.ZSIGT)THEN |
---|
117 | nktopg=JK |
---|
118 | ENDIF |
---|
119 | Coff ZPM1R=pplay_glo(klon_glo/2,jk)/paprs_glo(klon_glo/2,1) |
---|
120 | ZPM1R=pplay(klon/2,jk)/paprs(klon/2,1) |
---|
121 | IF(ZPM1R.GE.ZTOP)THEN |
---|
122 | ntop=JK |
---|
123 | ENDIF |
---|
124 | 110 CONTINUE |
---|
125 | c |
---|
126 | c inversion car dans orodrag on compte les niveaux a l'envers |
---|
127 | nktopg=nlev-nktopg+1 |
---|
128 | ntop=nlev-ntop |
---|
129 | print *,' DANS SUGWD nktopg=', nktopg |
---|
130 | print *,' DANS SUGWD ntop=', ntop |
---|
131 | C |
---|
132 | GSIGCR=0.80 |
---|
133 | C |
---|
134 | c valeurs dans la dernière routine de FLott |
---|
135 | c GKDRAG=0.1875 |
---|
136 | c GRAHILO=0.1 |
---|
137 | c GRCRIT=1.00 |
---|
138 | c GFRCRIT=1.00 |
---|
139 | c GKWAKE=0.50 |
---|
140 | C |
---|
141 | c GKLIFT=0.25 |
---|
142 | c GVCRIT =0.1 |
---|
143 | |
---|
144 | c valeurs dans les routines Mars |
---|
145 | GKDRAG=0.1 |
---|
146 | GRAHILO=1.0 |
---|
147 | GRCRIT=0.25 |
---|
148 | GFRCRIT=1.00 |
---|
149 | GKWAKE=1.0 |
---|
150 | C |
---|
151 | GKLIFT=0.25 |
---|
152 | GVCRIT =0.0 |
---|
153 | |
---|
154 | WRITE(UNIT=6,FMT='('' *** SSO essential constants ***'')') |
---|
155 | WRITE(UNIT=6,FMT='('' *** SPECIFIED IN SUGWD ***'')') |
---|
156 | WRITE(UNIT=6,FMT='('' Gravity wave ct '',E13.7,'' '')')GKDRAG |
---|
157 | WRITE(UNIT=6,FMT='('' Trapped/total wave dag '',E13.7,'' '')') |
---|
158 | S GRAHILO |
---|
159 | WRITE(UNIT=6,FMT='('' Critical Richardson = '',E13.7,'' '')') |
---|
160 | S GRCRIT |
---|
161 | WRITE(UNIT=6,FMT='('' Critical Froude'',e13.7)') GFRCRIT |
---|
162 | WRITE(UNIT=6,FMT='('' Low level Wake bluff cte'',e13.7)') GKWAKE |
---|
163 | WRITE(UNIT=6,FMT='('' Low level lift cte'',e13.7)') GKLIFT |
---|
164 | |
---|
165 | C |
---|
166 | C |
---|
167 | C ---------------------------------------------------------------- |
---|
168 | C |
---|
169 | C* 2. SET VALUES OF SECURITY PARAMETERS |
---|
170 | C --------------------------------- |
---|
171 | C |
---|
172 | 200 CONTINUE |
---|
173 | C |
---|
174 | c valeurs dans la dernière routine de FLott |
---|
175 | c GVSEC=0.10 |
---|
176 | c GSSEC=0.0001 |
---|
177 | C |
---|
178 | c GTSEC=0.00001 |
---|
179 | C |
---|
180 | c valeurs dans les routines Mars |
---|
181 | GVSEC=0.10 |
---|
182 | GSSEC=1.e-12 |
---|
183 | C |
---|
184 | GTSEC=1.e-7 |
---|
185 | C |
---|
186 | RETURN |
---|
187 | END |
---|
188 | |
---|