Skip to content
Snippets Groups Projects
Commit defb9e5e authored by Kakay, Dr. Attila (FWIN) - 9524's avatar Kakay, Dr. Attila (FWIN) - 9524 :smiling_imp:
Browse files

Hotfix: Will correct rotation matrix for mz=-1.

parent ff18a744
No related branches found
No related tags found
1 merge request!39Merge hotfix (1.3.1) downstream
......@@ -124,7 +124,7 @@ double rotation_matrix_component_nonorm(double m[3], int idx_m, int idx_n) {
// so the rotation matrix becomes the identity operator
if (abs_sq == 0) {
// printf("Warning: magnetization in ez-direction\n");
return idx_m == idx_n ? 1 : 0;
return idx_m == idx_n ? m[2] : 0;
}
switch (idx_m) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment