48 SUBROUTINE spdz2uv(I,M,ENN1,ELONN1,EON,EONTOP,D,Z,U,V,UTOP,VTOP)
49 REAL ENN1((M+1)*((I+1)*M+2)/2),ELONN1((M+1)*((I+1)*M+2)/2)
50 REAL EON((M+1)*((I+1)*M+2)/2),EONTOP(M+1)
51 REAL D((M+1)*((I+1)*M+2)),Z((M+1)*((I+1)*M+2))
52 REAL U((M+1)*((I+1)*M+2)),V((M+1)*((I+1)*M+2))
53 REAL UTOP(2*(M+1)),VTOP(2*(M+1))
57 u(2*k-1)=eon(k+1)*z(2*k+1)
58 u(2*k)=eon(k+1)*z(2*k+2)
59 v(2*k-1)=-eon(k+1)*d(2*k+1)
60 v(2*k)=-eon(k+1)*d(2*k+2)
61 DO k=2,(m+1)*((i+1)*m+2)/2-1
62 u(2*k-1)=elonn1(k)*d(2*k)+eon(k+1)*z(2*k+1)-eon(k)*z(2*k-3)
63 u(2*k)=-elonn1(k)*d(2*k-1)+eon(k+1)*z(2*k+2)-eon(k)*z(2*k-2)
64 v(2*k-1)=elonn1(k)*z(2*k)-eon(k+1)*d(2*k+1)+eon(k)*d(2*k-3)
65 v(2*k)=-elonn1(k)*z(2*k-1)-eon(k+1)*d(2*k+2)+eon(k)*d(2*k-2)
68 u(2*k-1)=elonn1(k)*d(2*k)-eon(k)*z(2*k-3)
69 u(2*k)=-elonn1(k)*d(2*k-1)-eon(k)*z(2*k-2)
70 v(2*k-1)=elonn1(k)*z(2*k)+eon(k)*d(2*k-3)
71 v(2*k)=-elonn1(k)*z(2*k-1)+eon(k)*d(2*k-2)
75 k=l*(2*m+(i-1)*(l-1))/2+i*l+m+1
76 utop(2*l+1)=-eontop(l+1)*z(2*k-1)
77 utop(2*l+2)=-eontop(l+1)*z(2*k)
78 vtop(2*l+1)=eontop(l+1)*d(2*k-1)
79 vtop(2*l+2)=eontop(l+1)*d(2*k)
subroutine spdz2uv(I, M, ENN1, ELONN1, EON, EONTOP, D, Z, U, V, UTOP, VTOP)
Computes the wind components from divergence and vorticity in spectral space.