12integer,
intent(in) :: ik
16complex(8),
allocatable :: apwalm(:,:,:,:,:),evecfv(:,:,:),evecsv(:,:)
17complex(8),
allocatable :: wfmt(:,:,:,:),wfgk(:,:,:),pmat(:,:,:)
26 sfacgk(:,:,ispn,ik),apwalm(:,:,:,:,ispn))
30call genwfsv(.true.,.true.,
nstsv,[0],
ngridg,
igfft,
ngk(:,ik),
igkig(:,:,ik), &
31 apwalm,evecfv,evecsv,wfmt,
ngkmax,wfgk)
32deallocate(evecfv,evecsv,apwalm)
35call genpmatk(
ngk(:,ik),
igkig(:,:,ik),
vgkc(:,:,:,ik),wfmt,wfgk,pmat)
46 inquire(iolength=recl)
vkl(1:3,1),
nstsv,pmat
47 open(230,
file=
'PMAT.OUT',form=
'UNFORMATTED',access=
'DIRECT',recl=recl)
48 write(230,rec=ik)
vkl(1:3,ik),
nstsv,pmat
subroutine genpmatk(ngp, igpig, vgpc, wfmt, wfgp, pmat)
subroutine genwfsv(tsh, tgp, nst, idx, ngridg_, igfft_, ngp, igpig, apwalm, evecfv, evecsv, wfmt, ld, wfir)
subroutine getevecfv(fext, ikp, vpl, vgpl, evecfv)
subroutine getevecsv(fext, ikp, vpl, evecsv)
subroutine match(ngp, vgpc, gpc, sfacgp, apwalm)
real(8), dimension(:,:,:,:), allocatable vgkc
integer, dimension(3) ngridg
real(8), dimension(:,:,:), allocatable gkc
integer, dimension(:,:), allocatable ngk
integer, dimension(:,:,:), allocatable igkig
real(8), dimension(:,:,:,:), allocatable vgkl
integer, dimension(:), allocatable igfft
real(8), dimension(:,:), allocatable vkl
complex(8), dimension(:,:,:,:), allocatable sfacgk
type(file_t), dimension(:), allocatable, private file
subroutine putrd(fname, irec, n1, n2, n3, v1, v2, nrv, rva, nzv, zva)