6pure subroutine hmlalo(is,ias,ngp,apwalm,ld,h)
10integer,
intent(in) :: is,ias,ngp
12integer,
intent(in) :: ld
13complex(8),
intent(inout) :: h(ld,*)
17integer lm1,lm3,lma,lmb
21 do lm1=l1**2+1,(l1+1)**2
22 j=ngp+
idxlo(lm1,ilo,ias)
24 if (mod(l1+l3,2) == 0) then; l0=0; else; l0=1;
end if
25 do lm3=l3**2+1,(l3+1)**2
29 lma=l2**2+1; lmb=lma+2*l2
30 z1=z1+sum(
gntyry(lma:lmb,lm3,lm1)*
hloa(lma:lmb,io,l3,ilo,ias))
33 if (abs(z1%re)+abs(z1%im) > 1.d-12)
then
34 h(1:ngp,j)=h(1:ngp,j)+conjg(z1*apwalm(1:ngp,io,lm3))
integer, dimension(:,:,:), allocatable idxlo
integer, dimension(0:maxlapw, maxspecies) apword
complex(8), dimension(:,:,:), allocatable gntyry
integer, dimension(maxspecies) nlorb
real(8), dimension(:,:,:,:,:), allocatable hloa
integer, dimension(maxlorb, maxspecies) lorbl