9subroutine ggamt_2a(tsh,is,np,rho,g2rho,gvrho,grho2)
21logical,
intent(in) :: tsh
22integer,
intent(in) :: is,np
23real(8),
intent(in) :: rho(np)
24real(8),
intent(out) :: g2rho(np),gvrho(np,3),grho2(np)
28real(8) grfmt(np,3),rfmt1(np),rfmt2(np)
33 call grad2rfmt(nr,nri,
rlmt(:,-1,is),
rlmt(:,-2,is),
wcrmt(:,:,is),rho,rfmt2)
35 call rfsht(nr,nri,rho,rfmt1)
36 call grad2rfmt(nr,nri,
rlmt(:,-1,is),
rlmt(:,-2,is),
wcrmt(:,:,is),rfmt1,rfmt2)
38call rbsht(nr,nri,rfmt2,g2rho)
41 call gradrfmt(nr,nri,
rlmt(:,-1,is),
wcrmt(:,:,is),rho,np,grfmt)
43 call gradrfmt(nr,nri,
rlmt(:,-1,is),
wcrmt(:,:,is),rfmt1,np,grfmt)
46 call rbsht(nr,nri,grfmt(:,i),gvrho(:,i))
49grho2(1:np)=gvrho(1:np,1)**2+gvrho(1:np,2)**2+gvrho(1:np,3)**2
subroutine ggamt_2a(tsh, is, np, rho, g2rho, gvrho, grho2)
subroutine grad2rfmt(nr, nri, ri, ri2, wcr, rfmt, g2rfmt)
subroutine gradrfmt(nr, nri, ri, wcr, rfmt, ld, grfmt)
integer, dimension(maxspecies) nrmti
real(8), dimension(:,:,:), allocatable wcrmt
integer, dimension(maxspecies) nrmt
real(8), dimension(:,:,:), allocatable rlmt
subroutine rbsht(nr, nri, rfmt1, rfmt2)
subroutine rfsht(nr, nri, rfmt1, rfmt2)