33 complex(8),
allocatable :: zmagh(:)
38 allocate(zmagh(
nhvec))
41 write(fname,
'("SFACMAG_",I1.1,".OUT")') idm
42 open(50,file=trim(fname),form=
'FORMATTED')
44 write(50,
'("h k l indices transformed by vhmat matrix:")')
45 write(50,
'(3G18.10)')
vhmat(:,1)
46 write(50,
'(3G18.10)')
vhmat(:,2)
47 write(50,
'(3G18.10)')
vhmat(:,3)
49 write(50,
'(" h k l multipl. |H| Re(F)& 59 a=dble(zmagh(ih))*
omega 60 b=-aimag(zmagh(ih))*
omega 61 r=abs(zmagh(ih))*
omega 63 if ((abs(v(1)-iv(1)) <=
epslat).and. &
64 (abs(v(2)-iv(2)) <=
epslat).and. &
65 (abs(v(3)-iv(3)) <=
epslat))
then 67 write(50,
'(4I7,4G16.8)') iv(:),
mulh(ih),
hc(ih),a,b,r
70 write(50,
'(3F7.2,I7,4G16.8)') v(:),
mulh(ih),
hc(ih),a,b,r
76 write(*,
'("Info(sfacmag): magnetic structure factors written to & 78 write(*,
'(" for magnetic components j = ",3I2)') (idm,idm=1,
ndmag)
80 write(*,
'(" (this corresponds to the z-component of the magnetisation)")')
83 write(*,
'(" Energy window : ",2G18.10)')
wsfac(:)
85 call writetest(196,
'magnetic structure factors',nv=
nhvec,tol=1.d-4,zva=zmagh(:))
subroutine writetest(id, descr, nv, iv, iva, tol, rv, rva, zv, zva)
real(8), dimension(3, 3) vhmat
real(8), dimension(:,:), allocatable vhc
real(8), dimension(:,:,:), pointer, contiguous magmt
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
real(8), dimension(:,:), pointer, contiguous magir