35 integer is,ia,ja,ias,jas
36 integer nr,nri,nrs,nthd
39 real(8) vr(nrspmax),br(nrmtmax),fr(nrmtmax),eval(nstspmax)
41 real(8),
external :: rfmtint
54 if (.not.
tfeqat(ia,is)) cycle
62 v(idm)=rfmtint(nr,nri,
wr2mt(:,is),
magmt(:,ias,idm))
66 t1=sqrt(v(1)**2+v(2)**2+v(3)**2)
77 br(1:nr)=br(1:nr)+t1*fr(1:nr)
88 vr(1:nr)=vr(1:nr)+br(1:nr)
90 vr(1:nr)=vr(1:nr)-br(1:nr)
95 vr(nr+1:nrs)=
vrsp(nr+1:nrs,is)+t1
96 rhocr(1:nr,ias,ispn)=0.d0
101 call rdirac(
solsc,
nsp(ist,is),
lsp(ist,is),
ksp(ist,is),nrs,
rsp(:,is),vr,&
102 eval(ist),
rwfcr(:,1,ist,ias),
rwfcr(:,2,ist,ias))
110 t1=0.5d0*
occcr(ist,ias)
117 +t1*(
rwfcr(1:nr,1,ist,ias)**2+
rwfcr(1:nr,2,ist,ias)**2)
125 if (
eqatoms(ia,ja,is).and.(ia /= ja))
then 130 rwfcr(1:nrs,1:2,ist,jas)=
rwfcr(1:nrs,1:2,ist,ias)
integer, dimension(maxstsp, maxspecies) ksp
integer, dimension(maxstsp, maxspecies) lsp
logical, dimension(:,:), allocatable tfeqat
real(8), dimension(:,:), allocatable occcr
integer, dimension(maxatoms, maxspecies) idxas
real(8), dimension(:,:,:), allocatable rlmt
real(8), dimension(:,:), allocatable evalcr
real(8), dimension(:,:,:), allocatable rhocr
logical, dimension(:,:,:), allocatable eqatoms
subroutine rdirac(sol, n, l, k, nr, r, vr, eval, g0, f0)
logical, dimension(maxstsp, maxspecies) spcore
pure subroutine rfmtlm(lm, nr, nri, rfmt, fr)
real(8), dimension(:,:,:), allocatable bxcmt
real(8), dimension(:,:,:), pointer, contiguous magmt
integer, dimension(maxspecies) nrsp
integer, dimension(maxspecies) natoms
integer, dimension(maxatoms *maxspecies) idxis
integer, dimension(maxstsp, maxspecies) nsp
subroutine holdthd(nloop, nthd)
integer, dimension(maxatoms *maxspecies) idxia
integer, dimension(maxspecies) nstsp
real(8), dimension(:,:,:,:), allocatable rwfcr
real(8), dimension(:,:), allocatable rsp
real(8), dimension(:,:), allocatable vrsp
real(8), dimension(:,:), pointer, contiguous vsmt
integer, dimension(maxspecies) nrmti
real(8), dimension(:,:), allocatable wr2mt
integer, dimension(maxspecies) nrmt