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