9pure subroutine findngkmax(nkpt,vkc,nspnfv,vqcss,ngv,vgc,gkmax,ngkmax)
33integer,
intent(in) :: nkpt
34real(8),
intent(in) :: vkc(3,nkpt)
35integer,
intent(in) :: nspnfv
36real(8),
intent(in) :: vqcss(3)
37integer,
intent(in) :: ngv
38real(8),
intent(in) :: vgc(3,ngv),gkmax
39integer,
intent(out) :: ngkmax
50 v1=vkc(1,ik)+0.5d0*vqcss(1)
51 v2=vkc(2,ik)+0.5d0*vqcss(2)
52 v3=vkc(3,ik)+0.5d0*vqcss(3)
54 v1=vkc(1,ik)-0.5d0*vqcss(1)
55 v2=vkc(2,ik)-0.5d0*vqcss(2)
56 v3=vkc(3,ik)-0.5d0*vqcss(3)
65 t1=(vgc(1,ig)+v1)**2+(vgc(2,ig)+v2)**2+(vgc(3,ig)+v3)**2
pure subroutine findngkmax(nkpt, vkc, nspnfv, vqcss, ngv, vgc, gkmax, ngkmax)