1 | SUBROUTINE SUGWD(NLEV,PSIG) |
---|
2 | C |
---|
3 | C**** *SUGWD* INITIALIZE COMMON YOEGWD CONTROLLING GRAVITY WAVE DRAG |
---|
4 | C |
---|
5 | C PURPOSE. |
---|
6 | C -------- |
---|
7 | C INITIALIZE YOEGWD, THE COMMON THAT CONTROLS THE |
---|
8 | C GRAVITY WAVE DRAG PARAMETRIZATION. |
---|
9 | C |
---|
10 | C EXPLICIT ARGUMENTS : |
---|
11 | C -------------------- |
---|
12 | C |
---|
13 | C INPUT : |
---|
14 | C |
---|
15 | C PSIG : VERTICAL COORDINATE TABLE |
---|
16 | C NLEV : NUMBER OF MODEL LEVELS |
---|
17 | C |
---|
18 | C OUTPUT : |
---|
19 | C |
---|
20 | C NONE |
---|
21 | C |
---|
22 | C IMPLICIT ARGUMENTS : |
---|
23 | C -------------------- |
---|
24 | C COMMON YOEGWD |
---|
25 | C |
---|
26 | C METHOD. |
---|
27 | C ------- |
---|
28 | C SEE DOCUMENTATION |
---|
29 | C |
---|
30 | C EXTERNALS. |
---|
31 | C ---------- |
---|
32 | C NONE |
---|
33 | C |
---|
34 | C REFERENCE. |
---|
35 | C ---------- |
---|
36 | C ECMWF Research Department documentation of the IFS |
---|
37 | C |
---|
38 | C AUTHOR. |
---|
39 | C ------- |
---|
40 | C MARTIN MILLER *ECMWF* |
---|
41 | C |
---|
42 | C MODIFICATIONS. |
---|
43 | C -------------- |
---|
44 | C ORIGINAL : 90-01-01 |
---|
45 | C ------------------------------------------------------------------ |
---|
46 | implicit none |
---|
47 | C |
---|
48 | C ----------------------------------------------------------------- |
---|
49 | c !-*- include 'yoegwd.h' |
---|
50 | #include "yoegwd.h" |
---|
51 | c !-*- |
---|
52 | C ---------------------------------------------------------------- |
---|
53 | C |
---|
54 | integer nlev |
---|
55 | REAL PSIG(NLEV+1) |
---|
56 | |
---|
57 | real zsigt,zpr,zpm1r |
---|
58 | integer jk |
---|
59 | C |
---|
60 | C * 1. SET THE VALUES OF THE PARAMETERS |
---|
61 | C -------------------------------- |
---|
62 | C |
---|
63 | 100 CONTINUE |
---|
64 | C |
---|
65 | c PRINT *,' Dans sugwd nlev=',NLEV,' SIG=',PSIG |
---|
66 | GHMAX=10000. |
---|
67 | C |
---|
68 | c old ZSIGT=0.94 |
---|
69 | c old ZPR=80000. |
---|
70 | ZSIGT=0.85 |
---|
71 | ZPR=100000. |
---|
72 | C |
---|
73 | DO 110 JK=1,NLEV-1 |
---|
74 | ZPM1R=0.5*ZPR*(PSIG(JK)+PSIG(JK+1)) |
---|
75 | IF((ZPM1R/ZPR).GE.ZSIGT)THEN |
---|
76 | NKTOPG=JK |
---|
77 | ENDIF |
---|
78 | 110 CONTINUE |
---|
79 | WRITE(*,*) 'In sugwd NKTOPG=',NKTOPG |
---|
80 | C |
---|
81 | GSIGCR=0.80 |
---|
82 | C |
---|
83 | GKDRAG= 0.1 ! used to be 0.1 for mcd Version 1 and 2 (before 10/2000) |
---|
84 | GRCRIT=0.25 |
---|
85 | GFRCRIT=1.0 |
---|
86 | GKWAKE=1.0 |
---|
87 | |
---|
88 | C |
---|
89 | GKDRAGL=4.*GKDRAG |
---|
90 | GRAHILO=1. |
---|
91 | GVCRIT =0.0 |
---|
92 | C |
---|
93 | C |
---|
94 | C ---------------------------------------------------------------- |
---|
95 | C |
---|
96 | C * 2. SET VALUES OF SECURITY PARAMETERS |
---|
97 | C --------------------------------- |
---|
98 | C |
---|
99 | 200 CONTINUE |
---|
100 | C |
---|
101 | GVSEC=0.10 |
---|
102 | GSSEC=1.E-12 |
---|
103 | C |
---|
104 | GTSEC=1.E-07 |
---|
105 | C |
---|
106 | C ---------------------------------------------------------------- |
---|
107 | C |
---|
108 | RETURN |
---|
109 | END |
---|