19real(8),
allocatable :: emd(:)
20complex(8),
allocatable :: wfpw(:,:,:)
23 write(*,
'("Error(writeemd): electron momentum density not available for &
51open(250,file=
'EMD.OUT',form=
'UNFORMATTED',access=
'DIRECT',recl=recl)
64 write(*,
'("Info(writeemd): ",I6," of ",I6," k-points")') ik,
nkpt
67 call genwfpw(
vkl(:,ik),
ngk(1,ik),
igkig(:,1,ik),
vgkl(:,:,1,ik), &
68 vgkc(:,:,1,ik),
gkc(:,1,ik),
sfacgk(:,:,1,ik),
nhk(1,ik),
vhkc(:,:,1,ik), &
77 sm=sm+
occsv(ist,ik)*(z1%re**2+z1%im**2)
83 write(250,rec=ik)
vkl(:,ik),
nhk(1,ik),emd
95 write(*,
'("Info(writeemd): electron momentum density written to EMD.OUT")')
96 write(*,
'(" for all H+k-vectors up to |H+k| < hkmax")')
subroutine genwfpw(vpl, ngp, igpig, vgpl, vgpc, gpc, sfacgp, nhp, vhpc, hpc, sfachp, wfpw)
subroutine getoccsv(fext, ikp, vpl, occsvp)
subroutine delfile(fname)
real(8), dimension(:,:,:,:), allocatable vgkc
real(8), dimension(:,:,:), allocatable gkc
integer, dimension(:,:), allocatable ngk
integer, dimension(:,:,:), allocatable igkig
real(8), dimension(:,:,:,:), allocatable vgkl
real(8), dimension(:,:), allocatable vkl
complex(8), dimension(:,:,:,:), allocatable sfacgk
real(8), dimension(:,:), allocatable occsv
subroutine holdthd(nloop, nthd)
real(8), dimension(:,:,:), allocatable hkc
real(8), dimension(:,:,:,:), allocatable vhkc
integer, dimension(:,:), allocatable nhk
complex(8), dimension(:,:,:,:), allocatable sfachk