13 integer ifq,idm,is,ias
14 integer ir,npc,n,lp,nthd
17 real(8),
allocatable :: vxcrmt(:,:,:),vxcrir(:,:)
18 real(8),
allocatable :: bxcrmt(:,:,:,:),bxcrir(:,:,:)
19 real(8),
allocatable :: rhomt_(:,:),rhoir_(:)
20 real(8),
allocatable :: magmt_(:,:,:),magir_(:,:)
21 real(8),
allocatable :: vxcmt_(:,:),bxcmt_(:,:,:)
22 complex(8),
allocatable :: vxcqmt(:,:,:),vxcqir(:,:)
63 call potxc(.false.,
xctype,rhomt_,rhoir_,magmt_,magir_,
taumt,
tauir,
exmt,
exir, &
64 ecmt,
ecir,vxcmt_,vxcrir(:,ir),bxcmt_,bxcrir(:,:,ir),
wxcmt,
wxcir)
78 deallocate(rhomt_,rhoir_,vxcmt_)
79 if (
spinpol)
deallocate(magmt_,magir_,bxcmt_)
87 call mpi_bcast(vxcrmt(:,:,ir),n,mpi_double_precision,lp,
mpicom,
ierror)
97 call mpi_bcast(bxcrmt(:,:,:,ir),n,mpi_double_precision,lp,
mpicom,
ierror)
102 call mpi_bcast(bxcrir(:,:,ir),n,mpi_double_precision,lp,
mpicom,
ierror)
109 deallocate(vxcrmt,vxcrir)
121 vsqmt(1:npc,ias,ifq)=
vsqmt(1:npc,ias,ifq)+vxcqmt(1:npc,ias,ifq)+z1
133 deallocate(vxcqmt,vxcqir)
137 deallocate(bxcrmt,bxcrir)
152 bsqmt(1:npc,ias,idm,ifq)=
bsqmt(1:npc,ias,idm,ifq)+z2
complex(8), dimension(:,:,:), pointer, contiguous vsqmt
real(8), dimension(:), allocatable wxcir
integer, dimension(maxspecies) npcmt
subroutine rfirctof(rfirc, rfir)
integer, dimension(3) xctype
real(8), dimension(:), allocatable ecir
complex(8), dimension(:,:), pointer, contiguous vsqir
complex(8), dimension(:,:), allocatable bdipq
real(8), dimension(:,:), allocatable ecmt
complex(8), dimension(:,:,:), pointer, contiguous bsqir
subroutine rfmtctof(rfmt)
real(8), dimension(:,:), allocatable exmt
subroutine potxc(tsh, xctype_, rhomt_, rhoir_, magmt_, magir_, taumt_, tauir_, exmt_, exir_, ecmt_, ecir_, vxcmt_, vxcir_, bxcmt_, bxcir_, wxcmt_, wxcir_)
real(8), dimension(:,:), allocatable wxcmt
complex(8), dimension(:), allocatable vclq
real(8), dimension(:,:,:,:), pointer, contiguous magrmt
real(8), dimension(:,:,:), pointer, contiguous rhormt
real(8), dimension(:,:), pointer, contiguous rhorir
complex(8), dimension(:,:,:,:), pointer, contiguous bsqmt
integer, dimension(maxatoms *maxspecies) idxis
complex(8), dimension(:,:,:), allocatable bfcmtq
real(8), dimension(:,:), allocatable tauir
real(8), dimension(:,:,:), pointer, contiguous magrir
complex(8), dimension(:,:), allocatable bfcq
subroutine holdthd(nloop, nthd)
integer, dimension(maxspecies) nrcmt
integer, dimension(maxspecies) nrcmti
subroutine rfzfftq(sgn, nf, ngt, rfmt, rfir, zfmt, zfir)
pure subroutine rfmtftoc(nrc, nrci, rfmt, rfcmt)
real(8), dimension(:,:,:), allocatable taumt
real(8), dimension(:), allocatable exir