15real(8) wkpr(-lmmaxdm:lmmaxdm)
16complex(8) dm(lmmaxdm,2,lmmaxdm,2)
28 call dmtotm3(l,k,p,r,lmmaxdm,
dmatmt(:,:,:,:,ias),wkpr)
30 t0=sqrt(dble((2*l+1)*2))
36 call tm3todm(l,k,p,r,lmmaxdm,wkpr,dm)
38 vmftm(:,:,:,:,ias)=
vmftm(:,:,:,:,ias)+dm(:,:,:,:)
45 vmatmt(:,:,:,:,ias)=
vmatmt(:,:,:,:,ias)+
vmftm(:,:,:,:,ias)
subroutine dmtotm3(l, k, p, r, ld, dm, wkpr)
complex(8), dimension(:,:,:,:,:), allocatable vmatmt
real(8), dimension(:), allocatable wkprfix
integer, dimension(:,:), allocatable itmfix
complex(8), dimension(:,:,:,:,:), allocatable dmatmt
complex(8), dimension(:,:,:,:,:), allocatable vmftm
integer, dimension(maxatoms, maxspecies) idxas
subroutine tm3todm(l, k, p, r, ld, wkpr, dm)