9 pure subroutine findngkmax(nkpt,vkc,nspnfv,vqcss,ngv,vgc,gkmax,ngkmax)
33 integer,
intent(in) :: nkpt
34 real(8),
intent(in) :: vkc(3,nkpt)
35 integer,
intent(in) :: nspnfv
36 real(8),
intent(in) :: vqcss(3)
37 integer,
intent(in) :: ngv
38 real(8),
intent(in) :: vgc(3,ngv),gkmax
39 integer,
intent(out) :: ngkmax
42 real(8) v1,v2,v3,t0,t1
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
68 if (n > ngkmax) ngkmax=n
pure subroutine findngkmax(nkpt, vkc, nspnfv, vqcss, ngv, vgc, gkmax, ngkmax)