15 real(8) v1(3),v2(3),th
49 open(71,file=
'MAE_INFO.OUT',form=
'FORMATTED')
51 write(71,
'("Scale factor of spin-orbit coupling term : ",G18.10)')
socscf 58 write(*,
'("Info(mae): fixed spin moment direction ",I0," of ",I0)') i,
npmae 80 if (abs(v2(j)) <
epslat) v2(j)=0.d0
88 write(71,
'("Fixed spin moment direction point ",I0," of ",I0)') i,
npmae 89 write(71,
'("Spherical coordinates of direction : ",2G18.10)')
tpmae(:,i)
90 write(71,
'("Direction vector (Cartesian coordinates) : ",3G18.10)') v2
91 write(71,
'("Calculated total moment magnitude : ",G18.10)')
momtotm 92 write(71,
'("Total energy : ",G24.14)')
engytot 113 write(71,
'("Minimum energy point : ",I6)') i0
114 write(71,
'("Maximum energy point : ",I6)') i1
116 write(71,
'("Estimated magnetic anisotropy energy (MAE) : ",G18.10)') de
118 write(71,
'("MAE per unit volume : ",G18.10)') de/
omega 120 open(50,file=
'MAE.OUT',form=
'FORMATTED')
121 write(50,
'(G18.10)') de
123 open(50,file=
'MAEPUV.OUT',form=
'FORMATTED')
124 write(50,
'(G18.10)') de/
omega 127 write(*,
'("Info(mae):")')
128 write(*,
'(" Estimated magnetic anisotropy energy written to MAE.OUT")')
129 write(*,
'(" MAE per unit volume written to MAEPUV.OUT")')
131 write(*,
'(" Number of fixed spin moment directions used : ",I0)')
npmae 133 write(*,
'(" Additional information written to MAE_INFO.OUT")')
136 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)