9subroutine ggamt_1(tsh,is,np,rho,grho,g2rho,g3rho)
21logical,
intent(in) :: tsh
22integer,
intent(in) :: is,np
23real(8),
intent(in) :: rho(np)
24real(8),
intent(out) :: grho(np),g2rho(np),g3rho(np)
28real(8) grfmt(np,3),gvrho(np,3),rfmt1(np),rfmt2(np)
33 call gradrfmt(nr,nri,
rlmt(:,-1,is),
wcrmt(:,:,is),rho,np,grfmt)
35 call rfsht(nr,nri,rho,rfmt1)
36 call gradrfmt(nr,nri,
rlmt(:,-1,is),
wcrmt(:,:,is),rfmt1,np,grfmt)
39 call rbsht(nr,nri,grfmt(:,i),gvrho(:,i))
41grho(1:np)=sqrt(gvrho(1:np,1)**2+gvrho(1:np,2)**2+gvrho(1:np,3)**2)
44 call grad2rfmt(nr,nri,
rlmt(:,-1,is),
rlmt(:,-2,is),
wcrmt(:,:,is),rho,rfmt2)
46 call grad2rfmt(nr,nri,
rlmt(:,-1,is),
rlmt(:,-2,is),
wcrmt(:,:,is),rfmt1,rfmt2)
48call rbsht(nr,nri,rfmt2,g2rho)
50call rfsht(nr,nri,grho,rfmt2)
51call gradrfmt(nr,nri,
rlmt(:,-1,is),
wcrmt(:,:,is),rfmt2,np,grfmt)
54 call rbsht(nr,nri,grfmt(:,i),rfmt2)
55 g3rho(1:np)=g3rho(1:np)+gvrho(1:np,i)*rfmt2(1:np)
subroutine ggamt_1(tsh, is, np, rho, grho, g2rho, g3rho)
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)