25integer lmax,is,ia,ias,nthd
26integer nr,nri,nro,nrs,iro,ir
27integer nrc,nrci,irco,irc
28integer l,lm,i0,i1,ig,ifg
32real(8) ffg(ngvc),wr(nrspmax),jl(0:lmaxi,nrcmtmax)
33complex(8) zfmt(npcmtmax),zfft(ngtc)
58 sm=sm+t2*sin(x)*
rhosp(ir,is)*
rsp(ir,is)*wr(ir)
61 sm=sum(
rhosp(nr:nrs,is)*(
rsp(nr:nrs,is)**2)*wr(nr:nrs))
71 zfft(ifg)=zfft(ifg)+ffg(ig)*conjg(
sfacg(ig,ias))
90 zfmt(1:
npcmt(is))=0.d0
97 z1=zfft(ifg)*
sfacg(ig,ias)
100 z2=z1*conjg(
ylmg(lm,ig))
133 rhoir(ir)=dble(zfft(ir))+t1
real(8), dimension(:,:), allocatable rhosp
integer, dimension(maxspecies) nrmti
integer, dimension(3) ngdgc
integer, dimension(maxspecies) nrmt
integer, dimension(maxspecies) natoms
real(8), dimension(:), pointer, contiguous rhoir
real(8), dimension(:,:), allocatable rcmt
integer, dimension(maxatoms, maxspecies) idxas
integer, dimension(maxspecies) nrcmt
real(8), dimension(:,:), allocatable rsp
integer, dimension(:), allocatable igfc
integer, dimension(maxatoms *maxspecies) idxis
complex(8), dimension(:,:), allocatable sfacg
real(8), parameter fourpi
integer, dimension(maxspecies) npcmt
integer, dimension(maxspecies) nrsp
real(8), dimension(:,:), pointer, contiguous rhomt
complex(8), dimension(:,:), allocatable ylmg
integer, dimension(maxspecies) nrcmti
real(8), dimension(:), allocatable gc
subroutine holdthd(nloop, nthd)
subroutine rfirctof(rfirc, rfir)
subroutine rfmtctof(rfmt)
subroutine sbessel(lmax, x, jl)
subroutine wsplint(n, x, w)
subroutine zfftifc(nd, n, sgn, z)
pure subroutine ztorfmt(nr, nri, zfmt, rfmt)