[3] | 1 | SUBROUTINE gwstress |
---|
| 2 | * ( nlon , nlev |
---|
| 3 | * , kkcrit, ksect, kkhlim, ktest, kkcrith, kcrit, kkenvh |
---|
| 4 | * , kknu |
---|
| 5 | * , prho , pstab , pvph , pstd, psig |
---|
| 6 | * , pmea , ppic , pval , ptfr , ptau |
---|
| 7 | * , pgeom1 , pgamma , pd1 , pd2 , pdmod , pnu ) |
---|
| 8 | c |
---|
| 9 | c**** *gwstress* |
---|
| 10 | c |
---|
| 11 | c purpose. |
---|
| 12 | c -------- |
---|
| 13 | c Compute the surface stress due to Gravity Waves, according |
---|
| 14 | c to the Phillips (1979) theory of 3-D flow above |
---|
| 15 | c anisotropic elliptic ridges. |
---|
| 16 | |
---|
| 17 | C The stress is reduced two account for cut-off flow over |
---|
| 18 | C hill. The flow only see that part of the ridge located |
---|
| 19 | c above the blocked layer (see zeff). |
---|
| 20 | c |
---|
| 21 | c** interface. |
---|
| 22 | c ---------- |
---|
| 23 | c call *gwstress* from *gwdrag* |
---|
| 24 | c |
---|
| 25 | c explicit arguments : |
---|
| 26 | c -------------------- |
---|
| 27 | c ==== inputs === |
---|
| 28 | c ==== outputs === |
---|
| 29 | c |
---|
| 30 | c implicit arguments : none |
---|
| 31 | c -------------------- |
---|
| 32 | c |
---|
| 33 | c method. |
---|
| 34 | c ------- |
---|
| 35 | c |
---|
| 36 | c |
---|
| 37 | c externals. |
---|
| 38 | c ---------- |
---|
| 39 | c |
---|
| 40 | c |
---|
| 41 | c reference. |
---|
| 42 | c ---------- |
---|
| 43 | c |
---|
| 44 | c LOTT and MILLER (1997) & LOTT (1999) |
---|
| 45 | c |
---|
| 46 | c author. |
---|
| 47 | c ------- |
---|
| 48 | c |
---|
| 49 | c modifications. |
---|
| 50 | c -------------- |
---|
| 51 | c f. lott put the new gwd on ifs 22/11/93 |
---|
| 52 | c |
---|
| 53 | c----------------------------------------------------------------------- |
---|
[101] | 54 | use dimphy |
---|
[3] | 55 | implicit none |
---|
| 56 | |
---|
| 57 | #include "YOMCST.h" |
---|
| 58 | #include "YOEGWD.h" |
---|
| 59 | |
---|
| 60 | c----------------------------------------------------------------------- |
---|
| 61 | c |
---|
| 62 | c* 0.1 arguments |
---|
| 63 | c --------- |
---|
| 64 | c |
---|
| 65 | integer nlon,nlev |
---|
| 66 | integer kkcrit(nlon),kkcrith(nlon),kcrit(nlon),ksect(nlon), |
---|
| 67 | * kkhlim(nlon),ktest(nlon),kkenvh(nlon),kknu(nlon) |
---|
| 68 | c |
---|
| 69 | real prho(nlon,nlev+1),pstab(nlon,nlev+1),ptau(nlon,nlev+1), |
---|
| 70 | * pvph(nlon,nlev+1),ptfr(nlon), |
---|
| 71 | * pgeom1(nlon,nlev),pstd(nlon) |
---|
| 72 | c |
---|
| 73 | real pd1(nlon),pd2(nlon),pnu(nlon),psig(nlon),pgamma(nlon) |
---|
| 74 | real pmea(nlon),ppic(nlon),pval(nlon) |
---|
| 75 | real pdmod(nlon) |
---|
| 76 | c |
---|
| 77 | c----------------------------------------------------------------------- |
---|
| 78 | c |
---|
| 79 | c* 0.2 local arrays |
---|
| 80 | c ------------ |
---|
| 81 | c zeff--real: effective height seen by the flow when there is blocking |
---|
| 82 | |
---|
| 83 | integer jl |
---|
| 84 | real zeff |
---|
| 85 | c |
---|
| 86 | c----------------------------------------------------------------------- |
---|
| 87 | c |
---|
| 88 | c* 0.3 functions |
---|
| 89 | c --------- |
---|
| 90 | c ------------------------------------------------------------------ |
---|
| 91 | c |
---|
| 92 | c* 1. initialization |
---|
| 93 | c -------------- |
---|
| 94 | c |
---|
| 95 | c PRINT *,' in gwstress' |
---|
| 96 | 100 continue |
---|
| 97 | c |
---|
| 98 | c* 3.1 gravity wave stress. |
---|
| 99 | c |
---|
| 100 | 300 continue |
---|
| 101 | c |
---|
| 102 | c |
---|
| 103 | do 301 jl=kidia,kfdia |
---|
| 104 | if(ktest(jl).eq.1) then |
---|
| 105 | |
---|
| 106 | c effective mountain height above the blocked flow |
---|
| 107 | |
---|
| 108 | zeff=ppic(jl)-pval(jl) |
---|
| 109 | if(kkenvh(jl).lt.klev)then |
---|
| 110 | zeff=amin1(GFRCRIT*pvph(jl,klev+1)/sqrt(pstab(jl,klev+1)) |
---|
| 111 | c ,zeff) |
---|
| 112 | endif |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | ptau(jl,klev+1)=gkdrag*prho(jl,klev+1) |
---|
| 116 | * *psig(jl)*pdmod(jl)/4./pstd(jl) |
---|
| 117 | * *pvph(jl,klev+1)*sqrt(pstab(jl,klev+1)) |
---|
| 118 | * *zeff**2 |
---|
| 119 | |
---|
| 120 | |
---|
| 121 | c too small value of stress or low level flow include critical level |
---|
| 122 | c or low level flow: gravity wave stress nul. |
---|
| 123 | |
---|
| 124 | c lo=(ptau(jl,klev+1).lt.gtsec).or.(kcrit(jl).ge.kknu(jl)) |
---|
| 125 | c * .or.(pvph(jl,klev+1).lt.gvcrit) |
---|
| 126 | c if(lo) ptau(jl,klev+1)=0.0 |
---|
| 127 | |
---|
| 128 | c print *,jl,ptau(jl,klev+1) |
---|
| 129 | |
---|
| 130 | else |
---|
| 131 | |
---|
| 132 | ptau(jl,klev+1)=0.0 |
---|
| 133 | |
---|
| 134 | endif |
---|
| 135 | |
---|
| 136 | 301 continue |
---|
| 137 | |
---|
| 138 | c write(21)(ptau(jl,klev+1),jl=kidia,kfdia) |
---|
| 139 | |
---|
| 140 | return |
---|
| 141 | end |
---|
| 142 | |
---|
| 143 | |
---|