6 subroutine polark(ik,l,expqmt,pl)
10 integer,
intent(in) :: ik,l
11 complex(8),
intent(in) :: expqmt(npcmtmax,natmtot)
12 real(8),
intent(inout) :: pl
18 integer idx(nstsv),ngp(nspnfv),igpig(ngkmax,nspnfv)
20 complex(8),
allocatable :: wfmt(:,:,:,:),wfir(:,:,:)
21 complex(8),
allocatable :: wfmtq(:,:,:,:),wfgkq(:,:,:)
22 complex(8),
allocatable :: oq(:,:)
24 complex(8),
external :: zmdet
29 vkql(l)=vkql(l)+1.d0/dble(
ngridk(l))
39 call genwfsvp(.false.,.false.,nst,idx,
ngdgc,
igfc,
vkl(:,ik),ngp,igpig,wfmt,
ngtc,&
42 allocate(wfmtq(npcmtmax,natmtot,
nspinor,nst),wfgkq(ngkmax,
nspinor,nst))
43 call genwfsvp(.false.,.true.,nst,idx,
ngdgc,
igfc,vkql,ngp,igpig,wfmtq,ngkmax, &
47 call genolpq(nst,expqmt,ngp,igpig,wfmt,wfir,wfmtq,wfgkq,oq)
51 pl=pl+atan2(z1%im,z1%re)
52 deallocate(wfmt,wfir,wfmtq,wfgkq,oq)
real(8), dimension(:,:), allocatable evalsv
subroutine genolpq(nst, expqmt, ngpq, igpqig, wfmt, wfir, wfmtq, wfgpq, oq)
integer, dimension(:,:,:), allocatable ivkik
integer, dimension(:), allocatable igfc
subroutine polark(ik, l, expqmt, pl)
integer, dimension(3) ngridk
real(8), dimension(:,:), allocatable vkl
integer, dimension(3) ngdgc
subroutine genwfsvp(tsh, tgp, nst, idx, ngridg_, igfft_, vpl, ngp, igpig, wfmt, ld, wfir)
integer, dimension(:,:), allocatable ivk