34integer idu,ist,nr,l,n,i
56 write(*,
'("Error(init0): lmaxo > lmaxapw : ",2I8)')
lmaxo,
lmaxapw
107 if (any(
task == [5,51,52,53,61,62,63,700,701]))
then
109 write(*,
'("Error(init0): spin-spirals do not work with task ",I4)')
task
115 write(*,
'("Error(init0): spin-spirals do not work with the OEP method")')
121 write(*,
'("Error(init0): spin-spirals do not work with iterative &
156if (any(
task == [5,10,170,300,460,461,462,463,600,601,620,700,701,720,725]).or.&
164 write(*,
'("Error(init0): requested spin-polarised run with &
165 &spin-unpolarised")')
166 write(*,
'(" exchange-correlation functional")')
204 write(*,
'("Error(init0): meta-GGA is not valid for non-collinear magnetism")')
210 write(*,
'("Error(init0): non-collinear magnetism required for inclusion of &
211 &the dipole field")')
225 write(*,
'("Info(init0): mixtype changed to 1 for FSM calculation")')
245 if (all(
task /= [0,1,2,3,5,28,200,201,350,351]))
then
253 write(*,
'("Error(init0): tensor moments require spin-orbit coupling &
255 write(*,
'(" set spinorb=.true.")')
339if (any(
task == [460,461,462,463,480,481,485]))
then
431 write(*,
'("Error(init0): zero total charge")')
472 write(*,
'("Error(init0): isgkmax > nspecies : ",2I8)')
isgkmax,
nspecies
539if (
allocated(
vcln))
deallocate(
vcln)
577if (
allocated(
rhmg))
deallocate(
rhmg)
595if (
allocated(
jrmt))
deallocate(
jrmt)
596if (
allocated(
jrir))
deallocate(
jrir)
606if (
allocated(
exmt))
deallocate(
exmt)
608if (
allocated(
exir))
deallocate(
exir)
611if (
allocated(
ecmt))
deallocate(
ecmt)
613if (
allocated(
ecir))
deallocate(
ecir)
623if (
allocated(
bdmt))
deallocate(
bdmt)
624if (
allocated(
bdir))
deallocate(
bdir)
635if (
allocated(
vsbs))
deallocate(
vsbs)
649 if (
allocated(
bsir))
deallocate(
bsir)
653if (
allocated(
vsir))
deallocate(
vsir)
656if (
allocated(
vsig))
deallocate(
vsig)
664if (any(
xcgrad == [3,4,5,6]))
then
688 if (
allocated(
zqss))
deallocate(
zqss)
693 t1=-0.5d0*dot_product(
vqcss(1:3),
atposc(1:3,ia,is))
694 zqss(ias)=cmplx(cos(t1),sin(t1),8)
729 if (any(
task == [460,461,462,463,478]))
then
745 if (any(
task == [5,300,600,601,610,620,640]))
then
747 write(*,
'("Error(init0): DFT+U does not work with task ",I8)')
task
759 write(*,
'("Error(init0): invalid species number : ",I8)') is
780 vmftm(:,:,:,:,:)=0.d0
pure subroutine genffacgp(ngp, gpc, ld, ffacgp)
subroutine genjlgprmt(lmax, ngp, gpc, ld, jlgprmt)
pure subroutine gensfacgp(ngp, vgpc, ld, sfacgp)
subroutine getmixdata(mtype, mixdescr)
logical, dimension(:,:), allocatable tvmmt
integer, parameter lmmaxdm
real(8), dimension(maxdftu) lamdu0
real(8), dimension(maxdftu) udufix
complex(4), dimension(:,:,:,:,:), allocatable vmatmto
real(8), dimension(:,:), allocatable engyadu
integer, dimension(2, maxdftu) isldu
complex(8), dimension(:,:,:,:,:), allocatable vmatmt
integer, parameter lmaxdm
integer, dimension(:,:), allocatable itmfix
complex(8), dimension(:,:,:,:,:), allocatable dmatmt
complex(4), dimension(:,:,:,:,:), allocatable vmatmti
complex(8), dimension(:,:,:,:,:), allocatable vmftm
real(8), dimension(:,:), allocatable evalcr
integer, dimension(maxspecies) nrmti
real(8), dimension(3) bfieldc
real(8), dimension(:,:,:), allocatable bxcmt
real(8), dimension(3, 3) avec0
integer, dimension(2, 3) intgv
integer, dimension(3) ngridg
real(8), dimension(3) efieldc
complex(8), dimension(:), allocatable zqss
real(8), dimension(:), allocatable chgcrlk
real(8), dimension(:,:,:), pointer, contiguous magmt
real(8), dimension(3, maxatoms, maxspecies) atposc
real(8), dimension(:,:), allocatable bdir
integer, dimension(maxspecies) nrmt
integer, dimension(maxspecies) natoms
real(8), dimension(:), pointer, contiguous rhoir
logical, dimension(maxstsp, maxspecies) spcore
real(8), dimension(:,:), allocatable exmt
real(8), dimension(3) afieldc
real(8), dimension(:,:), allocatable mommt
real(8), dimension(3, 3) bvec
real(8), dimension(maxspecies) rmt
integer, dimension(maxatoms, maxspecies) idxas
integer, dimension(maxspecies) npcmti
real(8), dimension(:,:,:), allocatable taumt
real(8), dimension(:,:,:), allocatable jlgrmt
real(8), dimension(3) vecql
real(8), dimension(3, maxatoms, maxspecies) bfcmt
integer, dimension(maxspecies) npmti
real(8), dimension(:,:), allocatable ecmt
real(8), dimension(:,:), allocatable bfsmcmt
real(8), dimension(3) vecqc
real(8), dimension(3, 3) avecref
real(8), dimension(:,:,:), allocatable taucr
real(8), dimension(:,:), allocatable ffacg
integer, dimension(maxspecies) nrcmt
integer, dimension(3) ktype
real(8), dimension(3, 3) binv
real(8), dimension(:,:), allocatable bxcir
integer, dimension(3) xctype
real(8), dimension(:,:), allocatable rsp
integer, dimension(maxatoms *maxspecies) idxia
real(8), dimension(:), allocatable vxcir
integer, dimension(maxatoms *maxspecies) idxis
real(8), dimension(maxspecies) chgcr
real(8), dimension(maxstsp, maxspecies) occsp
complex(8), dimension(:,:), allocatable sfacg
integer, dimension(maxspecies) nstsp
real(8), parameter fourpi
real(8), dimension(3, 3) avec
real(8), dimension(:), allocatable, target rhmg
real(8), dimension(3) efieldl
real(8), dimension(3) vqcss
real(8), dimension(3, 3) afspc
real(8), dimension(:,:,:,:), allocatable rwfcr
real(8), dimension(3) bfsmc
real(8), dimension(maxspecies) spze
character(64), dimension(maxspecies) spsymb
real(8), dimension(:), allocatable, target vsbs
real(8), dimension(:,:), allocatable vplp1d
integer, dimension(maxspecies) npcmt
integer, dimension(:), allocatable igfft
real(8), dimension(:), allocatable dvp1d
real(8), dimension(:), allocatable vclir
real(8), parameter kboltz
real(8), dimension(:), allocatable dpp1d
real(8), dimension(:,:), pointer, contiguous magir
real(8), dimension(:), allocatable chgmt
real(8), dimension(:,:), allocatable socfr
real(8), dimension(:,:), allocatable bdmta
integer, dimension(maxstsp, maxspecies) ksp
real(8), dimension(:,:), allocatable forcetot
real(8), dimension(:,:,:), allocatable jrmt
complex(8), dimension(:), allocatable vsig
real(8), dimension(:,:), pointer, contiguous vsmt
real(8), dimension(3) bfieldc0
integer, dimension(maxspecies) npmt
real(8), dimension(:,:), allocatable bsir
integer, dimension(:,:), allocatable ivg
real(8), dimension(3, 3) ainv
real(8), dimension(3) afieldl
real(8), dimension(:,:), allocatable vclmt
integer, dimension(2) jspnfv
real(8), dimension(:,:), pointer, contiguous bsirc
real(8), dimension(:,:,:), allocatable bdmt
real(8), dimension(maxstsp, maxspecies) evalsp
real(8), dimension(:,:), allocatable vgc
real(8), dimension(:,:), allocatable vcln
real(8), dimension(:,:), allocatable vxcmt
integer, dimension(maxspecies) nrsp
real(8), dimension(:), pointer, contiguous vsirc
real(8), dimension(:,:), allocatable forcehf
real(8), dimension(3) vqlss
real(8), dimension(:), allocatable vsir
real(8), dimension(:), allocatable exir
real(8), dimension(:,:,:), pointer, contiguous bsmt
real(8), dimension(:,:,:), allocatable rhocr
real(8), dimension(:,:), pointer, contiguous rhomt
integer, dimension(maxspecies) nrcmti
real(8), dimension(:,:), allocatable efcmt
real(8), dimension(:), allocatable gc
real(8), dimension(:,:), allocatable tauir
real(8), dimension(:), allocatable wxcir
integer, dimension(:), allocatable ipcmt
real(8), dimension(3, maxatoms, maxspecies) atposl
real(8), dimension(:,:), allocatable wxcmt
character(64), dimension(maxspecies) spname
real(8), dimension(:), allocatable ecir
real(8), dimension(:), pointer, contiguous vmixer
real(8), dimension(3, maxatoms, maxspecies) bfcmt0
real(8), dimension(maxspecies) spzn
real(8), dimension(:,:), allocatable jrir
real(8), dimension(:,:), allocatable occcr
real(8), dimension(3, 0:1) afindt
subroutine writetest(id, descr, nv, iv, iva, tol, rv, rva, zv, zva)
subroutine writevars(vname, n1, n2, n3, n4, n5, n6, nv, iv, iva, rv, rva, zv, zva, sv, sva)
subroutine getxcdata(xctype, xcdescr, xcspin, xcgrad, hybrid, hybridc)
subroutine potnucl(ptnucl, nr, r, zn, vn)
pure subroutine r3frac(eps, v)
pure subroutine r3mv(a, x, y)
subroutine reciplat(avec, bvec, omega, omegabz)
subroutine getsdata(stype, sdescr)