22 real(8),
intent(out) :: g2rho(ngtot),gvrho(ngtot,3),grho2(ngtot)
53 grho2(1:ngtot)=gvrho(1:ngtot,1)**2+gvrho(1:ngtot,2)**2+gvrho(1:ngtot,3)**2
integer, dimension(3) ngridg
real(8), dimension(:,:), allocatable vgc
integer, dimension(:), allocatable igrzf
real(8), dimension(:), allocatable gc