12 integer is,ia,ias,np,i
15 real(8),
allocatable :: jrmt0(:,:,:),jrir0(:,:)
17 real(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(:)
99 deallocate(jrmt0,jrir0)
real(8), dimension(:), pointer, contiguous rhoir
integer, dimension(maxatoms, maxspecies) idxas
integer, dimension(maxspecies) npmt
real(8), dimension(:,:), pointer, contiguous rhomt
real(8), dimension(maxspecies) chgcr
real(8), dimension(:,:), allocatable rhosir
real(8), dimension(3) afieldc
integer, dimension(maxspecies) natoms
integer, dimension(maxatoms *maxspecies) idxis
real(8), dimension(:,:), allocatable chgsmt
real(8), dimension(3) chgstot
real(8), dimension(:,:,:), allocatable jrmt
real(8), dimension(3) afieldc0
integer, dimension(maxspecies) nrmti
real(8), dimension(:,:), allocatable jrir
character(64), dimension(maxspecies) spsymb
real(8), dimension(:,:), allocatable wr2mt
real(8), dimension(:,:,:), allocatable rhosmt
integer, dimension(maxspecies) nrmt