
See also mixbroydenspin of impurity code for reference to broyden spin mixing
Wrapper for spin miging of nonco angles
| 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 |
Do Broyden spin mixing for noncollinear magnetic moment directions
| 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 |