See also mixbroydenspin of impurity code for reference to broyden spin mixing
W r a p p e r
f o r
s p i n
m i g i n g
o f
n o n c o
a n g l e s
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | iter |
iteration counter |
||
integer, | intent(in) | :: | natyp |
number of atoms (array dimensions) |
||
real(kind=dp), | intent(in), | dimension (natyp) | :: | theta |
theta nonco angles in rad |
|
real(kind=dp), | intent(in), | dimension (natyp) | :: | phi |
phi nonco angles in rad |
|
logical, | intent(in), | dimension(natyp) | :: | fixdir |
booleans to fix nocon angles |
|
real(kind=dp), | intent(in) | :: | angles_new(2,natyp) |
new directions of the nonco angles |
||
real(kind=dp), | intent(in) | :: | totmoment(natyp) |
length of the magentization vectors |
||
integer, | intent(in) | :: | iounit |
output unit where the nonco_angles output file is written |
D o
B r o y d e n
s p i n
m i x i n g
f o r
n o n c o l l i n e a r
m a g n e t i c
m o m e n t
d i r e c t i o n s
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | iter |
iteration counter |
||
integer, | intent(in) | :: | natyp |
number of atoms (array dimensions) |
||
real(kind=dp), | intent(in) | :: | angles_new(2,natyp) |
new directions of the nonco angles |
||
real(kind=dp), | intent(in) | :: | totmoment_atoms(natyp) |
length of the magentization vectors |
||
integer, | intent(in) | :: | iounit |
output unit where the nonco_angles output file is written |