83integer nr,nri,i,j,nthd
84real(8) fav(3),ca,t1,t2
87real(8) forceibs(3,natmtot),grfmt(npmtmax,3)
89real(8),
allocatable :: rfmt(:,:)
91real(8),
external :: rfmtinp,rfmtint
102 call gradrfmt(nr,nri,
rlmt(:,-1,is),
wcrmt(:,:,is),
vclmt(:,ias),npmtmax,grfmt)
135 call mpi_allreduce(mpi_in_place,forceibs,3*natmtot,mpi_double_precision, &
147 call gradrfmt(nr,nri,
rlmt(:,-1,is),
wcrmt(:,:,is),
rhomt(:,ias),npmtmax,grfmt)
154 forceibs(i,ias)=forceibs(i,ias)+t1
159 allocate(rfmt(npmtmax,natmtot))
170 call gradrfmt(nr,nri,
rlmt(:,-1,is),
wcrmt(:,:,is),
magmt(:,ias,idm), &
174 forceibs(i,ias)=forceibs(i,ias)+t1
189 call gradrfmt(nr,nri,
rlmt(:,-1,is),
wcrmt(:,:,is),
jrmt(:,ias,j),npmtmax, &
193 forceibs(i,ias)=forceibs(i,ias)+t1*t2
212 fav(1:3)=fav(1:3)/dble(natmtot)
subroutine forcek(ik, forceibs)
subroutine gradrfmt(nr, nri, ri, wcr, rfmt, ld, grfmt)
integer, dimension(maxspecies) nrmti
real(8), dimension(:,:,:), allocatable wcrmt
real(8), dimension(:,:,:), pointer, contiguous magmt
integer, dimension(maxspecies) nrmt
integer, dimension(maxspecies) nrcmt
integer, dimension(maxatoms *maxspecies) idxis
real(8), dimension(:,:), allocatable forcetot
real(8), dimension(:,:,:), allocatable jrmt
real(8), dimension(:,:), pointer, contiguous vsmt
real(8), dimension(:,:), allocatable vclmt
real(8), dimension(:,:), allocatable wr2mt
real(8), dimension(:,:), allocatable forcehf
real(8), dimension(:,:,:), pointer, contiguous bsmt
real(8), dimension(:,:), pointer, contiguous rhomt
integer, dimension(maxspecies) nrcmti
real(8), dimension(:,:,:), allocatable rlmt
real(8), dimension(maxspecies) spmass
real(8), dimension(maxspecies) spzn
subroutine holdthd(nloop, nthd)
real(8), dimension(:,:), allocatable afieldt
real(8), dimension(:,:), allocatable chgsmt
real(8), dimension(3) efieldt
subroutine writetest(id, descr, nv, iv, iva, tol, rv, rva, zv, zva)
subroutine rfmtctof(rfmt)
pure real(8) function rfmtinp(nr, nri, wr, rfmt1, rfmt2)
pure real(8) function rfmtint(nr, nri, wr, rfmt)
subroutine rfsht(nr, nri, rfmt1, rfmt2)