12integer,
intent(in) :: ik
13real(8),
intent(out) :: chgk
19complex(8) gs(nstsv),g(nstsv,nstsv),ge(4,nstsv)
21complex(8),
allocatable :: se(:,:,:)
23complex(8),
external :: gwtails
25allocate(se(nstsv,nstsv,0:
nwfm))
40 gs(ist)=1.d0/(
wfm(iw)-e)
45 g(ist,1:nstsv)=z1*se(ist,1:nstsv,iw)
46 g(ist,ist)=g(ist,ist)+1.d0
52 g(ist,ist)=g(ist,ist)*gs(ist)
53 chgk=chgk+dble(g(ist,ist))
71 chgk=chgk+dble(
gwtails(ge(:,ist)))
real(8), dimension(:), allocatable wkpt
real(8), parameter kboltz
real(8), dimension(:,:), allocatable evalsv