34complex(8),
allocatable :: zrhoh(:)
40open(50,file=
'SFACRHO.OUT',form=
'FORMATTED')
42write(50,
'("h k l indices transformed by vhmat matrix:")')
43write(50,
'(3G18.10)')
vhmat(:,1)
44write(50,
'(3G18.10)')
vhmat(:,2)
45write(50,
'(3G18.10)')
vhmat(:,3)
47write(50,
'(" h k l multipl. |H| Re(F)&
57 a=dble(zrhoh(ih))*
omega
58 b=-aimag(zrhoh(ih))*
omega
59 r=abs(zrhoh(ih))*
omega
61 if ((abs(v(1)-iv(1)) <=
epslat).and. &
62 (abs(v(2)-iv(2)) <=
epslat).and. &
63 (abs(v(3)-iv(3)) <=
epslat))
then
65 write(50,
'(4I7,4G16.8)') iv(:),
mulh(ih),
hc(ih),a,b,r
68 write(50,
'(3F7.2,I7,4G16.8)') v(:),
mulh(ih),
hc(ih),a,b,r
73write(*,
'("Info(sfacrho): density structure factors written to SFACRHO.OUT")')
75write(*,
'(" Energy window : ",2G18.10)')
wsfac(:)
77call writetest(195,
'density structure factors',nv=
nhvec,tol=1.d-5,zva=zrhoh(:))
real(8), dimension(:), pointer, contiguous rhoir
real(8), dimension(2) wsfac
real(8), dimension(:,:), pointer, contiguous rhomt
real(8), dimension(3, 3) vhmat
real(8), dimension(:,:), allocatable vhc
integer, dimension(:,:), allocatable ivh
real(8), dimension(:), allocatable hc
integer, dimension(:), allocatable mulh
subroutine writetest(id, descr, nv, iv, iva, tol, rv, rva, zv, zva)
subroutine zftrf(npv, ivp, vpc, rfmt, rfir, zfp)