35integer,
intent(in) :: lmax
36real(8),
intent(in) :: v(3)
37real(8),
intent(out) :: rlm(*)
40real(8),
parameter :: sqtwo=1.4142135623730950488d0
42complex(8) ylm((lmax+1)**2)
43if ((lmax < 0).or.(lmax > 50))
then
45 write(*,
'("Error(genrlmv): lmax out of range : ",I8)') lmax
56 rlm(lm:lm+n)=sqtwo*aimag(ylm(lm:lm+n))
60 rlm(lm:lm+n)=sqtwo*dble(ylm(lm:lm+n))