9subroutine ggamt_2b(is,np,g2rho,gvrho,vx,vc,dxdgr2,dcdgr2)
21integer,
intent(in) :: is,np
22real(8),
intent(in) :: g2rho(np),gvrho(np,3)
23real(8),
intent(inout) :: vx(np),vc(np)
24real(8),
intent(in) :: dxdgr2(np),dcdgr2(np)
28real(8) rfmt1(np),rfmt2(np),grfmt(np,3)
35call rfsht(nr,nri,dxdgr2,rfmt1)
37call gradrfmt(nr,nri,
rlmt(:,-1,is),
wcrmt(:,:,is),rfmt1,np,grfmt)
41 call rbsht(nr,nri,grfmt(:,i),rfmt2)
42 rfmt1(1:np)=rfmt1(1:np)+rfmt2(1:np)*gvrho(1:np,i)
44vx(1:np)=vx(1:np)-2.d0*(rfmt1(1:np)+dxdgr2(1:np)*g2rho(1:np))
49call rfsht(nr,nri,dcdgr2,rfmt1)
51call gradrfmt(nr,nri,
rlmt(:,-1,is),
wcrmt(:,:,is),rfmt1,np,grfmt)
55 call rbsht(nr,nri,grfmt(:,i),rfmt2)
56 rfmt1(1:np)=rfmt1(1:np)+rfmt2(1:np)*gvrho(1:np,i)
58vc(1:np)=vc(1:np)-2.d0*(rfmt1(1:np)+dcdgr2(1:np)*g2rho(1:np))
subroutine ggamt_2b(is, np, g2rho, gvrho, vx, vc, dxdgr2, dcdgr2)
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)