15real(8),
allocatable :: jrmt0(:,:,:),jrir0(:,:)
17real(8),
external :: rfmtint,rfint
65 rhosmt(1:np,ias,i)=
rhomt(1:np,ias)+t1*(jrmt0(1:np,ias,i)-
jrmt(1:np,ias,i))
76 open(100,file=
'RHOSTAT.OUT',form=
'UNFORMATTED',action=
'WRITE')
85 open(50,file=
'CHGSTAT.OUT',form=
'FORMATTED',action=
'WRITE')
86 write(50,
'("Muffin-tin static charges :")')
88 write(50,
'(" species : ",I4," (",A,")")') is,trim(
spsymb(is))
89 write(50,
'(" core charge",T25,": ",G18.10)')
chgcr(is)
92 write(50,
'(" atom ",I4,T25,": ",3G18.10)') ia,
chgsmt(ias,:)
96 write(50,
'("Total static charge",T25,": ",3G18.10)')
chgstot(:)
99deallocate(jrmt0,jrir0)
integer, dimension(maxspecies) nrmti
real(8), dimension(3) afieldc0
integer, dimension(maxspecies) nrmt
integer, dimension(maxspecies) natoms
real(8), dimension(:), pointer, contiguous rhoir
real(8), dimension(3) afieldc
integer, dimension(maxatoms, maxspecies) idxas
integer, dimension(maxatoms *maxspecies) idxis
real(8), dimension(maxspecies) chgcr
character(64), dimension(maxspecies) spsymb
real(8), dimension(:,:,:), allocatable jrmt
integer, dimension(maxspecies) npmt
real(8), dimension(:,:), allocatable wr2mt
real(8), dimension(:,:), pointer, contiguous rhomt
real(8), dimension(:,:), allocatable jrir
real(8), dimension(:,:,:), allocatable rhosmt
real(8), dimension(:,:), allocatable chgsmt
real(8), dimension(:,:), allocatable rhosir
real(8), dimension(3) chgstot
real(8) function rfint(rfmt, rfir)
pure real(8) function rfmtint(nr, nri, wr, rfmt)