19 real(8),
allocatable :: emd(:)
20 complex(8),
allocatable :: wfpw(:,:,:)
23 write(*,
'("Error(writeemd): electron momentum density not available for & 49 inquire(iolength=recl)
vkl(:,1),
nhkmax,emd
51 open(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")')
real(8), dimension(:,:,:,:), allocatable vhkc
complex(8), dimension(:,:,:,:), allocatable sfacgk
integer, dimension(:,:), allocatable nhk
integer, dimension(:,:), allocatable ngk
subroutine genwfpw(vpl, ngp, igpig, vgpl, vgpc, gpc, sfacgp, nhp, vhpc, hpc, sfachp, wfpw)
real(8), dimension(:,:,:,:), allocatable vgkl
real(8), dimension(:,:), allocatable occsv
real(8), dimension(:,:,:,:), allocatable vgkc
real(8), dimension(:,:), allocatable vkl
real(8), dimension(:,:,:), allocatable hkc
subroutine delfile(fname)
subroutine getoccsv(fext, ikp, vpl, occsvp)
real(8), dimension(:,:,:), allocatable gkc
subroutine holdthd(nloop, nthd)
integer, dimension(:,:,:), allocatable igkig
complex(8), dimension(:,:,:,:), allocatable sfachk