12 integer ik,jk,ist,jst,i,nthd
13 integer ngp(nspnfv),ngpq(nspnfv)
14 real(8) vl(3),vc(3),q,vkql(3)
17 integer igpig(ngkmax,nspnfv),igpqig(ngkmax,nspnfv)
18 real(8) jlqr(njcmax,nspecies)
19 complex(8) ylmq(lmmaxo),sfacq(natmtot)
21 complex(8),
allocatable :: wfmt(:,:,:,:),wfir(:,:,:)
22 complex(8),
allocatable :: wfmtq(:,:,:,:),wfgpq(:,:,:)
23 complex(8),
allocatable :: expqmt(:,:),oq(:,:,:,:)
49 q=sqrt(vc(1)**2+vc(2)**2+vc(3)**2)
54 call genexpmt(1,jlqr,ylmq,1,sfacq,expqmt)
56 vkql(1:3)=
vkl(1:3,ik)+vl(1:3)
66 deallocate(wfmt,wfir,wfmtq,wfgpq,expqmt)
71 open(50,file=trim(fname),action=
'WRITE',form=
'FORMATTED')
72 write(50,
'("Generated by Elk version ",I0,".",I0,".",I0)')
version 77 write(50,
'(5I8)') ik,jk,
nncell(1:3,ik,i)
81 write(50,
'(2G18.10)') conjg(oq(jst,ist,i,ik))
88 write(*,
'("Info(writew90mmn): created file ",A)') trim(fname)
pure subroutine gensfacgp(ngp, vgpc, ld, sfacgp)
subroutine genolpq(nst, expqmt, ngpq, igpqig, wfmt, wfir, wfmtq, wfgpq, oq)
pure subroutine genylmv(t4pil, lmax, v, ylm)
integer, dimension(:,:,:), allocatable nncell
integer, dimension(:), allocatable igfc
integer, dimension(:), allocatable idxw90
real(8), dimension(3, 3) bvec
subroutine genexpmt(ngp, jlgpr, ylmgp, ld, sfacgp, expmt)
real(8), dimension(:,:), allocatable vkl
integer, dimension(3) ngdgc
subroutine genjlgpr(ngp, gpc, jlgpr)
integer, dimension(3), parameter version
subroutine holdthd(nloop, nthd)
pure subroutine r3mv(a, x, y)
subroutine genwfsvp(tsh, tgp, nst, idx, ngridg_, igfft_, vpl, ngp, igpig, wfmt, ld, wfir)
integer, dimension(:,:), allocatable nnlist