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