47 open(71,file=
'MAE_INFO.OUT',form=
'FORMATTED')
49 write(71,
'("Scale factor of spin-orbit coupling term : ",G18.10)')
socscf
56 write(*,
'("Info(mae): fixed spin moment direction ",I6," of ",I6)') i,
npmae
78 if (abs(v2(j)) <
epslat) v2(j)=0.d0
90 write(71,
'("Fixed spin moment direction point ",I6," of ",I6)') i,
npmae
91 write(71,
'("Spherical coordinates of direction : ",2G18.10)')
tpmae(:,i)
92 write(71,
'("Direction vector (Cartesian coordinates) : ",3G18.10)') v2
93 write(71,
'("Calculated total moment magnitude : ",G18.10)')
momtotm
94 write(71,
'("Total energy : ",G24.14)')
engytot
115 write(71,
'("Minimum energy point : ",I6)') i0
116 write(71,
'("Maximum energy point : ",I6)') i1
118 write(71,
'("Estimated magnetic anisotropy energy (MAE) : ",G18.10)') de
120 write(71,
'("MAE per unit volume : ",G18.10)') de/
omega
122 open(50,file=
'MAE.OUT',form=
'FORMATTED')
123 write(50,
'(G18.10)') de
125 open(50,file=
'MAEPUV.OUT',form=
'FORMATTED')
126 write(50,
'(G18.10)') de/
omega
129 write(*,
'("Info(mae):")')
130 write(*,
'(" Estimated magnetic anisotropy energy written to MAE.OUT")')
131 write(*,
'(" MAE per unit volume written to MAEPUV.OUT")')
133 write(*,
'(" Number of fixed spin moment directions used : ",I6)')
npmae
135 write(*,
'(" Additional information written to MAE_INFO.OUT")')
138call writetest(28,
'magnetic anisotropy energy',tol=1.d-5,rv=de)
pure subroutine axangrot(v, th, rot)
subroutine delfiles(evec, devec, eval, occ, pmat, epsi)
real(8), dimension(3, 3) avec0
real(8), dimension(3) bfieldc00
real(8), dimension(3) vkloff0
real(8), dimension(:,:), allocatable tpmae
real(8), dimension(3, 3) avec
real(8), dimension(3, 3) rotsht
real(8), dimension(3) bfieldc0
real(8), dimension(3) vkloff
subroutine writetest(id, descr, nv, iv, iva, tol, rv, rva, zv, zva)
pure subroutine r3mm(a, b, c)
pure subroutine r3mv(a, x, y)