26 SUBROUTINE spgrady(I,M,ENN1,EON,EONTOP,Q,QDY,QDYTOP)
28 REAL ENN1((M+1)*((I+1)*M+2)/2)
29 REAL EON((M+1)*((I+1)*M+2)/2),EONTOP(M+1)
30 REAL Q((M+1)*((I+1)*M+2))
31 REAL QDY((M+1)*((I+1)*M+2))
36 qdy(2*k-1)=eon(k+1)*enn1(k+1)*q(2*k+1)
37 qdy(2*k)=eon(k+1)*enn1(k+1)*q(2*k+2)
38 DO k=2,(m+1)*((i+1)*m+2)/2-1
39 qdy(2*k-1)=eon(k+1)*enn1(k+1)*q(2*k+1)-eon(k)*enn1(k-1)*q(2*k-3)
40 qdy(2*k)=eon(k+1)*enn1(k+1)*q(2*k+2)-eon(k)*enn1(k-1)*q(2*k-2)
43 qdy(2*k-1)=-eon(k)*enn1(k-1)*q(2*k-3)
44 qdy(2*k)=-eon(k)*enn1(k-1)*q(2*k-2)
48 k=l*(2*m+(i-1)*(l-1))/2+i*l+m+1
49 qdytop(2*l+1)=-eontop(l+1)*enn1(k)*q(2*k-1)
50 qdytop(2*l+2)=-eontop(l+1)*enn1(k)*q(2*k)