44 SUBROUTINE spdz2uv(I,M,ENN1,ELONN1,EON,EONTOP,D,Z,U,V,UTOP,VTOP)
45 REAL ENN1((M+1)*((I+1)*M+2)/2),ELONN1((M+1)*((I+1)*M+2)/2)
46 REAL EON((M+1)*((I+1)*M+2)/2),EONTOP(M+1)
47 REAL D((M+1)*((I+1)*M+2)),Z((M+1)*((I+1)*M+2))
48 REAL U((M+1)*((I+1)*M+2)),V((M+1)*((I+1)*M+2))
49 REAL UTOP(2*(M+1)),VTOP(2*(M+1))
53 u(2*k-1)=eon(k+1)*z(2*k+1)
54 u(2*k)=eon(k+1)*z(2*k+2)
55 v(2*k-1)=-eon(k+1)*d(2*k+1)
56 v(2*k)=-eon(k+1)*d(2*k+2)
57 DO k=2,(m+1)*((i+1)*m+2)/2-1
58 u(2*k-1)=elonn1(k)*d(2*k)+eon(k+1)*z(2*k+1)-eon(k)*z(2*k-3)
59 u(2*k)=-elonn1(k)*d(2*k-1)+eon(k+1)*z(2*k+2)-eon(k)*z(2*k-2)
60 v(2*k-1)=elonn1(k)*z(2*k)-eon(k+1)*d(2*k+1)+eon(k)*d(2*k-3)
61 v(2*k)=-elonn1(k)*z(2*k-1)-eon(k+1)*d(2*k+2)+eon(k)*d(2*k-2)
64 u(2*k-1)=elonn1(k)*d(2*k)-eon(k)*z(2*k-3)
65 u(2*k)=-elonn1(k)*d(2*k-1)-eon(k)*z(2*k-2)
66 v(2*k-1)=elonn1(k)*z(2*k)+eon(k)*d(2*k-3)
67 v(2*k)=-elonn1(k)*z(2*k-1)+eon(k)*d(2*k-2)
71 k=l*(2*m+(i-1)*(l-1))/2+i*l+m+1
72 utop(2*l+1)=-eontop(l+1)*z(2*k-1)
73 utop(2*l+2)=-eontop(l+1)*z(2*k)
74 vtop(2*l+1)=eontop(l+1)*d(2*k-1)
75 vtop(2*l+2)=eontop(l+1)*d(2*k)