44 SUBROUTINE splegend(I,M,SLAT,CLAT,EPS,EPSTOP,PLN,PLNTOP)
47 REAL EPS((M+1)*((I+1)*M+2)/2),EPSTOP(M+1)
48 REAL PLN((M+1)*((I+1)*M+2)/2),PLNTOP(M+1)
49 REAL(KIND=selected_real_kind(15,45)):: dln((m+1)*((i+1)*m+2)/2)
54 mx=(m+1)*((i+1)*m+2)/2
59 dln(2)=slat*dln(1)/eps(2)
62 dln(m1+2)=slat*dln(m1+1)/eps(m1+2)
63 dln(3)=(slat*dln(2)-eps(2)*dln(1))/eps(3)
66 dln(k)=(slat*dln(k-1)-eps(k-1)*dln(k-2))/eps(k)
68 dln(k)=(slat*dln(k-1)-eps(k-1)*dln(k-2))/eps(k)
72 dln(k)=(slat*dln(k-1)-eps(k-1)*dln(k-2))/eps(k)
81 plntop(1)=(slat*dln(k-1)-eps(k-1)*dln(k-2))/epstop(1)
84 plntop(2)=(slat*dln(k-1)-eps(k-1)*dln(k-2))/epstop(2)
97 k=l*(2*m+(i-1)*(l-1))/2+l+nml+1
98 dln(k)=dln(kp)*clat*sqrt(float(2*l+1)/float(2*l))
105 k=l*(2*m+(i-1)*(l-1))/2+l+nml+1
106 dln(k)=slat*dln(k-1)/eps(k)
113 k=l*(2*m+(i-1)*(l-1))/2+l+nml+1
114 dln(k)=(slat*dln(k-1)-eps(k-1)*dln(k-2))/eps(k)
121 k=l*(2*m+(i-1)*(l-1))/2+l+nml+1
122 plntop(l+1)=(slat*dln(k-1)-eps(k-1)*dln(k-2))/epstop(l+1)