1 | SUBROUTINE GWSTRESS |
---|
2 | * ( klon , klev |
---|
3 | * , KKCRIT, KSECT, KKHLIM, KTEST, KKCRITH, KCRIT, kkenvh |
---|
4 | * , kknu |
---|
5 | * , PRHO , PSTAB, PVPH , PVAR ,PVARor, psig |
---|
6 | * , PTFR , PTAU |
---|
7 | * ,pgeom1 , pgamma, pd1 , pd2 ,pdmod ,pnu ) |
---|
8 | C |
---|
9 | C**** *GWSTRESS* |
---|
10 | C |
---|
11 | C PURPOSE. |
---|
12 | C -------- |
---|
13 | C |
---|
14 | C** INTERFACE. |
---|
15 | C ---------- |
---|
16 | C CALL *GWSTRESS* FROM *GWDRAG* |
---|
17 | C |
---|
18 | C EXPLICIT ARGUMENTS : |
---|
19 | C -------------------- |
---|
20 | C ==== INPUTS === |
---|
21 | C ==== OUTPUTS === |
---|
22 | C |
---|
23 | C IMPLICIT ARGUMENTS : NONE |
---|
24 | C -------------------- |
---|
25 | C |
---|
26 | C METHOD. |
---|
27 | C ------- |
---|
28 | C |
---|
29 | C |
---|
30 | C EXTERNALS. |
---|
31 | C ---------- |
---|
32 | C |
---|
33 | C |
---|
34 | C REFERENCE. |
---|
35 | C ---------- |
---|
36 | C |
---|
37 | C SEE ECMWF RESEARCH DEPARTMENT DOCUMENTATION OF THE "I.F.S." |
---|
38 | C |
---|
39 | C AUTHOR. |
---|
40 | C ------- |
---|
41 | C |
---|
42 | C MODIFICATIONS. |
---|
43 | C -------------- |
---|
44 | C F. LOTT PUT THE NEW GWD ON IFS 22/11/93 |
---|
45 | C |
---|
46 | C----------------------------------------------------------------------- |
---|
47 | implicit none |
---|
48 | #include "dimensions.h" |
---|
49 | #include "dimphys.h" |
---|
50 | #include "dimradmars.h" |
---|
51 | integer klon,klev,kidia,kfdia |
---|
52 | |
---|
53 | #include "yoegwd.h" |
---|
54 | |
---|
55 | C----------------------------------------------------------------------- |
---|
56 | C |
---|
57 | C* 0.1 ARGUMENTS |
---|
58 | C --------- |
---|
59 | C |
---|
60 | INTEGER KKCRIT(NDLO2),KKCRITH(NDLO2),KCRIT(NDLO2),KSECT(NDLO2), |
---|
61 | * KKHLIM(NDLO2),KTEST(NDLO2),KKENVH(NDLO2),KKNU(NDLO2) |
---|
62 | C |
---|
63 | REAL PRHO(NDLO2,klev+1),PSTAB(NDLO2,klev+1),PTAU(NDLO2,klev+1), |
---|
64 | * PVPH(NDLO2,klev+1),PVAR(NDLO2,4),PTFR(NDLO2), |
---|
65 | * pgeom1(NDLO2,klev),PVARor(NDLO2) |
---|
66 | C |
---|
67 | real pd1(NDLO2),pd2(NDLO2),pnu(NDLO2),psig(NDLO2),pgamma(NDLO2) |
---|
68 | real pdmod(NDLO2) |
---|
69 | C |
---|
70 | C----------------------------------------------------------------------- |
---|
71 | C |
---|
72 | C* 0.2 LOCAL ARRAYS |
---|
73 | C ------------ |
---|
74 | integer jl |
---|
75 | real zblock,zvar,zeff |
---|
76 | logical lo |
---|
77 | |
---|
78 | C |
---|
79 | C----------------------------------------------------------------------- |
---|
80 | C |
---|
81 | C* 0.3 FUNCTIONS |
---|
82 | C --------- |
---|
83 | C ------------------------------------------------------------------ |
---|
84 | C |
---|
85 | C* 1. INITIALIZATION |
---|
86 | C -------------- |
---|
87 | |
---|
88 | |
---|
89 | kidia=1 |
---|
90 | kfdia=klon |
---|
91 | |
---|
92 | |
---|
93 | C |
---|
94 | 100 CONTINUE |
---|
95 | C |
---|
96 | C* 3.1 GRAVITY WAVE STRESS. |
---|
97 | C |
---|
98 | 300 CONTINUE |
---|
99 | C |
---|
100 | C |
---|
101 | DO 301 JL=kidia,kfdia |
---|
102 | IF(KTEST(JL).EQ.1) THEN |
---|
103 | |
---|
104 | C EFFECTIVE MOUNTAIN HEIGHT ABOVE THE BLOCKED FLOW |
---|
105 | |
---|
106 | c IF(KKENVH(JL).EQ.KLEV)THEN |
---|
107 | ZBLOCK=0.0 |
---|
108 | c ELSE |
---|
109 | c ZBLOCK=(PGEOM1(JL,KKENVH(JL))+PGEOM1(JL,KKENVH(JL)+1))/2./RG |
---|
110 | c ENDIF |
---|
111 | |
---|
112 | ZVAR=PVAROR(JL) |
---|
113 | ZEFF=AMAX1(0.,2.*ZVAR-ZBLOCK) |
---|
114 | |
---|
115 | PTAU(JL,KLEV+1)=PRHO(JL,KLEV+1)*GKDRAG*psig(jl)*ZEFF**2 |
---|
116 | * /4./ZVAR*PVPH(JL,KLEV+1)*pdmod(jl)*sqrt(pstab(jl,klev+1)) |
---|
117 | |
---|
118 | C TOO SMALL VALUE OF STRESS OR LOW LEVEL FLOW INCLUDE CRITICAL LEVEL |
---|
119 | C OR LOW LEVEL FLOW: GRAVITY WAVE STRESS NUL. |
---|
120 | |
---|
121 | LO=(PTAU(JL,KLEV+1).LT.GTSEC).OR.(KCRIT(JL).GE.KKNU(JL)) |
---|
122 | * .OR.(PVPH(JL,KLEV+1).LT.GVCRIT) |
---|
123 | c IF(LO) PTAU(JL,KLEV+1)=0.0 |
---|
124 | |
---|
125 | ELSE |
---|
126 | |
---|
127 | PTAU(JL,KLEV+1)=0.0 |
---|
128 | |
---|
129 | ENDIF |
---|
130 | |
---|
131 | 301 CONTINUE |
---|
132 | C |
---|
133 | RETURN |
---|
134 | END |
---|