66 integer ik,ist,idm,jdm
71 real(8),
allocatable :: rfmt(:,:)
72 complex(8),
allocatable :: evecsv(:,:),kmat(:,:),c(:,:)
74 real(8),
external :: rfinp
75 complex(8),
external :: zdotc
98 jdm=merge(idm,3,
ncmag)
189 call zgemm(
'N',
'N',
nstsv,
nstsv,
nstsv,
zone,kmat,
nstsv,evecsv,
nstsv,
zzero,c, &
192 z1=zdotc(
nstsv,evecsv(:,ist),1,c(:,ist),1)
196 deallocate(evecsv,kmat,c)
214 z1=zdotc(n2,
dmatmt(:,:,:,:,ias),1,
vmftm(:,:,:,:,ias),1)
240 if ((f > 0.d0).and.(f < 1.d0)) sm=sm+w*(f*log(f)+(1.d0-f)*log(1.d0-f))
subroutine writetest(id, descr, nv, iv, iva, tol, rv, rva, zv, zva)
subroutine getevecsv(fext, ikp, vpl, evecsv)
real(8), dimension(3) momtot
real(8), dimension(:,:), allocatable evalsv
integer, dimension(3) xctype
real(8), dimension(3) jtot
real(8), dimension(:), allocatable ecir
real(8), dimension(:), pointer, contiguous rhoir
integer, parameter lmmaxdm
real(8), dimension(:,:), allocatable vcln
real(8), dimension(:,:), allocatable vclmt
real(8), parameter kboltz
real(8), dimension(:,:), pointer, contiguous rhomt
complex(8), parameter zone
subroutine getkmat(ik, kmat)
real(8), dimension(:,:), allocatable ecmt
subroutine rfmtctof(rfmt)
complex(8), dimension(:,:,:,:,:), allocatable dmatmt
real(8), dimension(:), allocatable vsir
real(8), dimension(:,:), allocatable exmt
integer, dimension(2, maxdftu) isldu
real(8), dimension(:), allocatable wkpt
real(8), dimension(:,:,:), allocatable bxcmt
real(8), dimension(:,:), allocatable bsir
real(8), dimension(:,:,:), pointer, contiguous magmt
real(8), dimension(:,:), allocatable engyadu
real(8), dimension(:,:), allocatable occsv
real(8), dimension(:), allocatable vclir
real(8), parameter gfacte
real(8), dimension(3) afieldc
real(8), dimension(:,:), allocatable bxcir
complex(8), dimension(:,:,:,:,:), allocatable vmftm
complex(8), parameter zzero
real(8), dimension(:,:), allocatable vkl
integer, dimension(maxspecies) natoms
integer, dimension(maxatoms *maxspecies) idxis
subroutine rfsht(nr, nri, rfmt1, rfmt2)
real(8), dimension(maxspecies) spzn
real(8), dimension(:,:), pointer, contiguous magir
integer, dimension(maxspecies) nrcmt
integer, dimension(maxspecies) nrcmti
real(8), dimension(:,:), pointer, contiguous vsmt
real(8), dimension(:), allocatable exir
real(8), dimension(3) bfieldc
real(8), dimension(:,:,:), pointer, contiguous bsmt