9 subroutine hmlaa(thr,is,ias,ngp,apwalm,ld,h)
29 logical,
intent(in) :: thr
30 integer,
intent(in) :: is,ias,ngp
31 complex(8),
intent(in) :: apwalm(ngkmax,apwordmax,lmmaxapw)
32 integer,
intent(in) :: ld
33 complex(8),
intent(inout) :: h(*)
37 integer lm1,lm3,lma,lmb
40 complex(8) y(ngp),a(lmoapw(is),ngp),b(lmoapw(is),ngp)
43 do lm1=l1**2+1,(l1+1)**2
48 if (mod(l1+l3,2) == 0) then; l0=0; else; l0=1;
end if 49 do lm3=l3**2+1,(l3+1)**2
54 lma=l2**2+1; lmb=lma+2*l2
55 z1=z1+sum(
gntyry(lma:lmb,lm3,lm1)*
haa(lma:lmb,jo,l3,io,l1,ias))
57 if (abs(z1%re)+abs(z1%im) > 1.d-12)
then 58 call zaxpy(ngp,z1,apwalm(:,jo,lm3),1,y,1)
63 a(i,1:ngp)=apwalm(1:ngp,io,lm1)
70 call rzmctmu(lmoapw(is),ngp,a,b,ld,h)
73 call zmctmu(lmoapw(is),ngp,a,b,ld,h)
subroutine hmlaa(thr, is, ias, ngp, apwalm, ld, h)
real(8), dimension(:,:,:,:,:,:), allocatable haa
integer, dimension(0:maxlapw, maxspecies) apword
complex(8), dimension(:,:,:), allocatable gntyry
subroutine zmctmu(l, n, a, b, ld, c)
subroutine rzmctmu(l, n, a, b, ld, c)