34 complex(8),
allocatable :: zrhoh(:)
38 allocate(zrhoh(
nhvec))
40 open(50,file=
'SFACRHO.OUT',form=
'FORMATTED')
42 write(50,
'("h k l indices transformed by vhmat matrix:")')
43 write(50,
'(3G18.10)')
vhmat(:,1)
44 write(50,
'(3G18.10)')
vhmat(:,2)
45 write(50,
'(3G18.10)')
vhmat(:,3)
47 write(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
73 write(*,
'("Info(sfacrho): density structure factors written to SFACRHO.OUT")')
75 write(*,
'(" Energy window : ",2G18.10)')
wsfac(:)
77 call writetest(195,
'density structure factors',nv=
nhvec,tol=1.d-5,zva=zrhoh(:))
subroutine writetest(id, descr, nv, iv, iva, tol, rv, rva, zv, zva)
real(8), dimension(:), pointer, contiguous rhoir
real(8), dimension(:,:), pointer, contiguous rhomt
real(8), dimension(3, 3) vhmat
real(8), dimension(:,:), allocatable vhc
real(8), dimension(2) wsfac
subroutine zftrf(npv, ivp, vpc, rfmt, rfir, zfp)
integer, dimension(:), allocatable mulh
real(8), dimension(:), allocatable hc
integer, dimension(:,:), allocatable ivh