33 #include "dimensions.h"
59 REAL :: sinth,costh,costh2, ath,bth,cth,
lon,dps
62 REAL,
PARAMETER :: rho=1
63 REAL,
PARAMETER ::
k = 7.848e-6
64 REAL,
PARAMETER :: gh0 = 9.80616 * 8e3
65 INTEGER,
PARAMETER :: r0=4, r1=r0+1, r2=r0+2
75 ath = (r0+1)*(costh2**2) + (2*r0*r0-r0-2)*costh2 - 2*r0*r0
76 ath = .25*(
k**2)*(costh2**(r0-1))*ath
77 ath = .5*
k*(2*omeg+
k)*costh2 + ath
78 bth = (r1*r1+1)-r1*r1*costh2
79 bth = 2*(omeg+
k)*
k/(r1*r2) * (costh2**(r0/2))*bth
81 cth = .25*
k*
k*(costh2**r0)*cth
85 dps = ath + bth*cos(r0*
lon) + cth*cos(2*r0*
lon)
86 ps(
ij) = rho*(gh0 + (
rad**2)*dps)
89 write(
lunout,*)
'W91 ps', maxval(ps), minval(ps)
95 bth = r0*(1-costh2)-costh2
96 bth =
rad*
k*bth*(costh**(r0-1))
100 ucov(
ij,1) = (ath + bth*cos(r0*
lon))
103 write(
lunout,*)
'W91 u', maxval(ucov(:,1)), minval(ucov(:,1))
104 ucov(:,1)=ucov(:,1)*
cu
109 ath = -
rad*
k*r0*sinth*(costh**(r0-1))
113 vcov(
ij,1) = ath*sin(r0*
lon)
116 write(
lunout,*)
'W91 v', maxval(vcov(:,1)), minval(vcov(:,1))
117 vcov(:,1)=vcov(:,1)*
cv
126 ps(
ij) = 1e5*(1 + .1*exp(-100*(1+sin(
rlatu(
j)))**2) )