9 subroutine ggair_1(rho,grho,g2rho,g3rho)
21 real(8),
intent(in) :: rho(ngtot)
22 real(8),
intent(out) :: grho(ngtot),g2rho(ngtot),g3rho(ngtot)
26 real(8),
allocatable :: gvrho(:,:),rfir(:)
27 complex(8),
allocatable :: zfft1(:),zfft2(:)
28 allocate(gvrho(ngtot,3),rfir(ngtot))
36 zfft2(ifg)=
vgc(i,ig)*cmplx(-zfft1(ifg)%im,zfft1(ifg)%re,8)
43 grho(:)=sqrt(gvrho(:,1)**2+gvrho(:,2)**2+gvrho(:,3)**2)
48 zfft2(ifg)=-(
gc(ig)**2)*zfft1(ifg)
60 zfft2(ifg)=
vgc(i,ig)*cmplx(-zfft1(ifg)%im,zfft1(ifg)%re,8)
63 g3rho(:)=g3rho(:)+gvrho(:,i)*rfir(:)
65 deallocate(gvrho,rfir,zfft1,zfft2)
integer, dimension(3) ngridg
real(8), dimension(:,:), allocatable vgc
integer, dimension(:), allocatable igrzf
subroutine ggair_1(rho, grho, g2rho, g3rho)
real(8), dimension(:), allocatable gc
subroutine rzfftifc(nd, n, sgn, r, z)