10integer,
intent(in) :: ik2
12integer ik1,ist1,ist2,jst1,jst2
13integer i1,i2,j1,j2,a1,a2,b1,b2
20integer,
allocatable :: igpig(:,:)
21complex(4),
allocatable :: wfmt1(:,:,:,:),wfir1(:,:,:)
22complex(4),
allocatable :: wfmt2(:,:,:,:),wfir2(:,:,:)
23complex(4),
allocatable :: crhomt(:,:),crhoir(:)
24complex(4),
allocatable :: cvclmt(:,:,:),cvclir(:,:)
26complex(8),
external :: zcfinp
28allocate(igpig(
ngkmax,nspnfv))
34call genwfsvp_sp(.false.,.false.,
nstsv,[0],
ngdgc,
igfc,
vkl(:,ik2),ngp,igpig, &
44 call gencrho(.true.,.true.,
ngtc,wfmt2(:,:,:,ist2),wfir2(:,:,ist2), &
45 wfmt2(:,:,:,jst2),wfir2(:,:,jst2),crhomt,crhoir)
49 call cpotcoul(
nrcmt,
nrcmti,
npcmt,
nrcmtmax,
rlcmt,
ngdgc,
igfc,
ngvc,
gc,
gclg, &
50 ngvec,
jlgrmt,
ylmg,
sfacg,crhoir,
npcmtmax,cvclmt(:,:,l),cvclir(:,l))
51 cvclir(:,l)=cvclir(:,l)*
cfrc(:)
58 wfmt1(:,:,:,:)=wfmt2(:,:,:,:)
59 wfir1(:,:,:)=wfir2(:,:,:)
61 call genwfsvp_sp(.false.,.false.,
nstsv,[0],
ngdgc,
igfc,
vkl(:,ik1),ngp,igpig,&
70 call gencrho(.true.,.true.,
ngtc,wfmt1(:,:,:,ist1),wfir1(:,:,ist1), &
71 wfmt1(:,:,:,jst1),wfir1(:,:,jst1),crhomt,crhoir)
80 z1=t0*zcfinp(crhomt,crhoir,cvclmt(:,:,l),cvclir(:,l))
92 cvclir(:,l)=conjg(cvclir(:,l))
93 z1=t0*zcfinp(crhomt,crhoir,cvclmt(:,:,l),cvclir(:,l))
102deallocate(igpig,wfmt1,wfmt2,wfir1,wfir2)
103deallocate(crhomt,crhoir,cvclmt,cvclir)
pure subroutine cfmtconj(nr, nri, np, cfmt)
subroutine cpotcoul(nrmt_, nrmti_, npmt_, ld1, rl, ngridg_, igfft_, ngp, gpc, gclgp, ld2, jlgprmt, ylmgp, sfacgp, crhoir, ld3, cvclmt, cvclir)
subroutine gencrho(tsh, tspc, ngt, wfmt1, wfir1, wfmt2, wfir2, crhomt, crhoir)
subroutine gencvclmt(nrmt_, nrmti_, ld1, rl, wpr, ld2, crhomt, cvclmt)
subroutine genwfsvp_sp(tsh, tgp, nst, idx, ngridg_, igfft_, vpl, ngp, igpig, wfmt, ld, wfir)
integer, dimension(:,:), allocatable istbse
real(8), dimension(:), allocatable cfrc
integer, dimension(3) ngdgc
real(8), dimension(:,:,:), allocatable jlgrmt
integer, dimension(maxspecies) nrcmt
complex(8), dimension(:,:), allocatable hmlbse
integer, dimension(:), allocatable igfc
integer, dimension(maxatoms *maxspecies) idxis
complex(8), dimension(:,:), allocatable sfacg
real(8), dimension(:,:,:), allocatable rlcmt
integer, dimension(:,:,:), allocatable ijkbse
integer, dimension(:,:), allocatable jstbse
real(8), dimension(:,:,:), allocatable wprcmt
integer, dimension(maxspecies) npcmt
real(8), dimension(:,:), allocatable vkl
real(8), dimension(:), allocatable gclg
complex(8), dimension(:,:), allocatable ylmg
integer, dimension(maxspecies) nrcmti
real(8), dimension(:), allocatable gc