40 SUBROUTINE spuv2dz(I,M,ENN1,ELONN1,EON,EONTOP,U,V,UTOP,VTOP,D,Z)
41 REAL ENN1((M+1)*((I+1)*M+2)/2),ELONN1((M+1)*((I+1)*M+2)/2)
42 REAL EON((M+1)*((I+1)*M+2)/2),EONTOP(M+1)
43 REAL U((M+1)*((I+1)*M+2)),V((M+1)*((I+1)*M+2))
44 REAL UTOP(2*(M+1)),VTOP(2*(M+1))
45 REAL D((M+1)*((I+1)*M+2)),Z((M+1)*((I+1)*M+2))
53 DO k=2,(m+1)*((i+1)*m+2)/2-1
54 d(2*k-1)=-elonn1(k)*u(2*k)+eon(k+1)*v(2*k+1)-eon(k)*v(2*k-3)
55 d(2*k)=elonn1(k)*u(2*k-1)+eon(k+1)*v(2*k+2)-eon(k)*v(2*k-2)
56 z(2*k-1)=-elonn1(k)*v(2*k)-eon(k+1)*u(2*k+1)+eon(k)*u(2*k-3)
57 z(2*k)=elonn1(k)*v(2*k-1)-eon(k+1)*u(2*k+2)+eon(k)*u(2*k-2)
60 d(2*k-1)=-elonn1(k)*u(2*k)-eon(k)*v(2*k-3)
61 d(2*k)=elonn1(k)*u(2*k-1)-eon(k)*v(2*k-2)
62 z(2*k-1)=-elonn1(k)*v(2*k)+eon(k)*u(2*k-3)
63 z(2*k)=elonn1(k)*v(2*k-1)+eon(k)*u(2*k-2)
68 k=l*(2*m+(i-1)*(l-1))/2+i*l+m+1
69 d(2*k-1)=d(2*k-1)+eontop(l+1)*vtop(2*l+1)
70 d(2*k)=d(2*k)+eontop(l+1)*vtop(2*l+2)
71 z(2*k-1)=z(2*k-1)-eontop(l+1)*utop(2*l+1)
72 z(2*k)=z(2*k)-eontop(l+1)*utop(2*l+2)
76 DO k=2,(m+1)*((i+1)*m+2)/2
77 d(2*k-1)=d(2*k-1)*enn1(k)
79 z(2*k-1)=z(2*k-1)*enn1(k)