13real(8),
allocatable :: w(:),sig1(:,:),sig2(:,:)
14complex(8),
allocatable :: kerr(:)
27open(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)
43open(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)
64 if (abs(z3) > 1.d-8)
then
73open(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
83write(*,
'("Info(moke):")')
84write(*,
'(" complex Kerr angle in degrees written to KERR.OUT")')
85deallocate(w,sig1,sig2,kerr)
integer, dimension(3, 27) optcomp
real(8), parameter fourpi