11complex(4),
intent(in) :: wfmt(npcmtmax,natmtot,nspinor,nstsv)
12complex(8),
intent(inout) :: vmat(nstsv,nstsv)
15integer is,ia,ias,m,nthd
18complex(4) wfcr(npcmtmax,2),cfmt(npcmtmax)
19complex(8) v(nstsv,nstsv)
21complex(4),
allocatable :: crhomt(:,:)
23complex(8),
external :: zcfmtinp
24allocate(crhomt(npcmtmax,nstsv))
43 do m=-
ksp(ist3,is),
ksp(ist3,is)-1
52 call crho2(npc,wfcr,wfcr(:,2),wfmt(:,ias,1,ist1), &
53 wfmt(:,ias,2,ist1),cfmt)
55 call crho1(npc,wfcr,wfmt(:,ias,1,ist1),cfmt)
57 call cfsht(nrc,nrci,cfmt,crhomt(:,ist1))
80 v(ist1,ist2)=conjg(v(ist2,ist1))
83 v(ist1,ist1)=dble(v(ist1,ist1))
88vmat(1:nstsv,1:nstsv)=vmat(1:nstsv,1:nstsv)+v(1:nstsv,1:nstsv)
94pure subroutine crho1(n,wf1,wf2,crho)
96integer,
intent(in) :: n
97complex(4),
intent(in) :: wf1(n),wf2(n)
98complex(4),
intent(out) :: crho(n)
99crho(1:n)=conjg(wf1(1:n))*wf2(1:n)
102pure subroutine crho2(n,wf11,wf12,wf21,wf22,crho)
104integer,
intent(in) :: n
105complex(4),
intent(in) :: wf11(n),wf12(n),wf21(n),wf22(n)
106complex(4),
intent(out) :: crho(n)
107crho(1:n)=conjg(wf11(1:n))*wf21(1:n)+conjg(wf12(1:n))*wf22(1:n)
subroutine cfsht(nr, nri, cfmt1, cfmt2)
pure subroutine cpotclmt(nr, nri, ld, rl, wpr, crhomt, cvclmt)
pure subroutine crho2(n, wf11, wf12, wf21, wf22, crho)
pure subroutine crho1(n, wf1, wf2, crho)
integer, dimension(maxspecies) natoms
logical, dimension(maxstsp, maxspecies) spcore
integer, dimension(maxatoms, maxspecies) idxas
integer, dimension(maxspecies) nrcmt
integer, dimension(maxspecies) nstsp
real(8), dimension(:,:,:), allocatable rlcmt
real(8), dimension(:,:), allocatable wr2cmt
real(8), dimension(:,:,:), allocatable wprcmt
integer, dimension(maxspecies) npcmt
integer, dimension(maxstsp, maxspecies) ksp
integer, dimension(maxspecies) nrcmti
subroutine holdthd(nloop, nthd)
subroutine vclcore(wfmt, vmat)
pure subroutine wavefcr(tsh, lrstp, is, ia, ist, m, ld, wfcr)
pure complex(8) function zcfmtinp(nr, nri, wr, cfmt1, cfmt2)