10 integer,
intent(in) :: ik2
12 integer ik1,ist1,ist2,jst1,jst2
13 integer i1,i2,j1,j2,a1,a2,b1,b2
20 integer,
allocatable :: igpig(:,:)
21 complex(4),
allocatable :: wfmt1(:,:,:,:),wfir1(:,:,:)
22 complex(4),
allocatable :: wfmt2(:,:,:,:),wfir2(:,:,:)
23 complex(4),
allocatable :: crhomt(:,:),crhoir(:)
24 complex(4),
allocatable :: cvclmt(:,:,:),cvclir(:,:)
26 complex(8),
external :: zcfinp
28 allocate(igpig(
ngkmax,nspnfv))
34 call 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))
102 deallocate(igpig,wfmt1,wfmt2,wfir1,wfir2)
103 deallocate(crhomt,crhoir,cvclmt,cvclir)
complex(8), dimension(:,:), allocatable sfacg
subroutine gencvclmt(nrmt_, nrmti_, ld1, rl, wpr, ld2, crhomt, cvclmt)
integer, dimension(maxspecies) npcmt
subroutine genwfsvp_sp(tsh, tgp, nst, idx, ngridg_, igfft_, vpl, ngp, igpig, wfmt, ld, wfir)
subroutine gencrho(tsh, tspc, ngt, wfmt1, wfir1, wfmt2, wfir2, crhomt, crhoir)
integer, dimension(:,:,:), allocatable ijkbse
integer, dimension(:,:), allocatable jstbse
pure subroutine cfmtconj(nr, nri, np, cfmt)
complex(8), dimension(:,:), allocatable ylmg
integer, dimension(:), allocatable igfc
real(8), dimension(:,:,:), allocatable rlcmt
real(8), dimension(:,:,:), allocatable wprcmt
real(8), dimension(:,:), allocatable vkl
subroutine cpotcoul(nrmt_, nrmti_, npmt_, ld1, rl, ngridg_, igfft_, ngp, gpc, gclgp, ld2, jlgprmt, ylmgp, sfacgp, crhoir, ld3, cvclmt, cvclir)
integer, dimension(maxatoms *maxspecies) idxis
real(8), dimension(:,:,:), allocatable jlgrmt
real(8), dimension(:), allocatable gclg
integer, dimension(3) ngdgc
real(8), dimension(:), allocatable gc
complex(8), dimension(:,:), allocatable hmlbse
real(8), dimension(:), allocatable cfrc
integer, dimension(maxspecies) nrcmt
integer, dimension(maxspecies) nrcmti
integer, dimension(:,:), allocatable istbse