6 subroutine gradwf2(ik,gwf2mt,gwf2ir)
10 integer,
intent(in) :: ik
11 real(8),
intent(inout) :: gwf2mt(npmtmax,natmtot),gwf2ir(ngtot)
13 integer ispn,jspn,nst,ist,jst
14 integer is,ia,ias,nrc,nrci,npc
20 complex(8) gwfmt(npcmtmax,3),zfmt(npcmtmax)
22 complex(8),
allocatable :: apwalm(:,:,:,:,:),evecfv(:,:),evecsv(:,:)
23 complex(8),
allocatable :: wfmt(:,:,:,:),wfgk(:,:,:),zfft(:)
28 call match(
ngk(ispn,ik),
vgkc(:,:,ispn,ik),
gkc(:,ispn,ik),
sfacgk(:,:,ispn,ik),&
43 call genwfsv(.true.,.true.,nst,idx,
ngdgc,
igfc,
ngk(:,ik),
igkig(:,:,ik),apwalm, &
44 evecfv,evecsv,wfmt,
ngkmax,wfgk)
45 deallocate(apwalm,evecfv,evecsv)
61 wfmt(:,ias,ispn,ist),npcmtmax,gwfmt)
64 call zbsht(nrc,nrci,gwfmt(:,i),zfmt)
66 gwf2mt(1:npc,ias)=gwf2mt(1:npc,ias) &
67 +wo*(dble(zfmt(1:npc))**2+aimag(zfmt(1:npc))**2)
89 zfft(ifg)=
vgkc(i,igk,jspn,ik)*cmplx(-z1%im,z1%re,8)
93 +wo*(dble(zfft(1:
ngtc))**2+aimag(zfft(1:
ngtc))**2)
subroutine gradwf2(ik, gwf2mt, gwf2ir)
integer, dimension(maxspecies) npcmt
subroutine getevecsv(fext, ikp, vpl, evecsv)
subroutine genwfsv(tsh, tgp, nst, idx, ngridg_, igfft_, ngp, igpig, apwalm, evecfv, evecsv, wfmt, ld, wfir)
integer, dimension(maxatoms, maxspecies) idxas
subroutine getevecfv(fext, ikp, vpl, vgpl, evecfv)
subroutine match(ngp, vgpc, gpc, sfacgp, apwalm)
subroutine gradzfmt(nr, nri, ri, wcr, zfmt, ld, gzfmt)
complex(8), dimension(:,:,:,:), allocatable sfacgk
integer, dimension(:,:), allocatable ngk
subroutine zfftifc(nd, n, sgn, z)
real(8), dimension(:), allocatable wkpt
real(8), dimension(:,:,:,:), allocatable vgkl
integer, dimension(:), allocatable igfc
real(8), dimension(:,:,:), allocatable rlcmt
real(8), dimension(:,:), allocatable occsv
real(8), dimension(:,:,:,:), allocatable vgkc
real(8), dimension(:,:), allocatable vkl
integer, dimension(maxspecies) natoms
real(8), dimension(:,:,:), allocatable wcrcmt
subroutine zbsht(nr, nri, zfmt1, zfmt2)
real(8), dimension(:,:,:), allocatable gkc
integer, dimension(3) ngdgc
integer, dimension(maxspecies) nrcmt
integer, dimension(maxspecies) nrcmti
integer, dimension(:,:,:), allocatable igkig
integer, dimension(2) jspnfv