11integer ik,jk,ist,jst,i
12integer ngp(nspnfv),ngpq(nspnfv)
13real(8) vl(3),vc(3),q,vkql(3)
16complex(8) ylmq(lmmaxo),sfacq(natmtot)
18integer,
allocatable :: igpig(:,:),igpqig(:,:)
19real(8),
allocatable :: jlqr(:,:)
20complex(8),
allocatable :: wfmt(:,:,:,:),wfir(:,:,:)
21complex(8),
allocatable :: wfmtq(:,:,:,:),wfgpq(:,:,:)
22complex(8),
allocatable :: expqmt(:,:),oq(:,:)
33open(50,file=trim(fname),action=
'WRITE',form=
'FORMATTED')
34write(50,
'("Generated by Elk version ",I0,".",I0,".",I0)')
version
46 q=sqrt(vc(1)**2+vc(2)**2+vc(3)**2)
51 call genexpmt(1,jlqr,ylmq,1,sfacq,expqmt)
53 vkql(:)=
vkl(:,ik)+vl(:)
60 write(50,
'(5I8)') ik,jk,
nncell(:,ik,i)
63 write(50,
'(2G18.10)') dble(oq(jst,ist)),-aimag(oq(jst,ist))
70write(*,
'("Info(writew90mmn): created file ",A)') trim(fname)
71deallocate(igpig,igpqig,jlqr)
72deallocate(wfmt,wfir,wfmtq,wfgpq)
subroutine genexpmt(ngp, jlgpr, ylmgp, ld, sfacgp, expmt)
subroutine genjlgpr(ngp, gpc, jlgpr)
subroutine genolpq(nst, expqmt, ngpq, igpqig, wfmt, wfir, wfmtq, wfgpq, oq)
pure subroutine gensfacgp(ngp, vgpc, ld, sfacgp)
subroutine genwfsvp(tsh, tgp, nst, idx, ngridg_, igfft_, vpl, ngp, igpig, wfmt, ld, wfir)
pure subroutine genylmv(t4pil, lmax, v, ylm)
integer, dimension(3) ngdgc
real(8), dimension(3, 3) bvec
integer, dimension(:), allocatable igfc
integer, dimension(3), parameter version
real(8), dimension(:,:), allocatable vkl
integer, dimension(:,:), allocatable nnlist
integer, dimension(:), allocatable idxw90
integer, dimension(:,:,:), allocatable nncell
pure subroutine r3mv(a, x, y)