13 real(8),
allocatable :: w(:),sig1(:,:),sig2(:,:)
14 complex(8),
allocatable :: kerr(:)
27 open(50,file=
'SIGMA_11.OUT',status=
'OLD',form=
'FORMATTED',iostat=ios)
30 write(*,
'("Error(moke): error opening SIGMA_11.OUT")')
35 read(50,
'(2G18.10)') w(iw),sig1(iw,1)
39 read(50,
'(2G18.10)') w(iw),sig2(iw,1)
43 open(50,file=
'SIGMA_12.OUT',status=
'OLD',form=
'FORMATTED',iostat=ios)
46 write(*,
'("Error(moke): error opening SIGMA_12.OUT")')
51 read(50,
'(2G18.10)') w(iw),sig1(iw,2)
55 read(50,
'(2G18.10)') w(iw),sig2(iw,2)
60 if (w(iw) > 0.d0)
then 61 z1=cmplx(sig1(iw,1),sig2(iw,1),8)
62 z2=cmplx(sig1(iw,2),sig2(iw,2),8)
63 z3=z1*sqrt(1.d0+
fourpi*cmplx(-z1%im,z1%re,8)/w(iw))
64 if (abs(z3) > 1.d-8)
then 73 open(50,file=
'KERR.OUT',form=
'FORMATTED')
75 write(50,
'(2G18.10)') w(iw),dble(kerr(iw))*180.d0/
pi 79 write(50,
'(2G18.10)') w(iw),aimag(kerr(iw))*180.d0/
pi 83 write(*,
'("Info(moke):")')
84 write(*,
'(" complex Kerr angle in degrees written to KERR.OUT")')
85 deallocate(w,sig1,sig2,kerr)
integer, dimension(3, 27) optcomp
real(8), parameter fourpi