Skip to content

Commit

Permalink
Rebased onto inhomog_lswt and fix ref to rots
Browse files Browse the repository at this point in the history
  • Loading branch information
hlane33 committed Nov 14, 2023
1 parent 8ce0fc5 commit 9684c20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SpinWaveTheory/KPM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function intensity_formula_kpm(f,swt::SpinWaveTheory,corr_ix::AbstractVector{Int
end
elseif sys.mode == :dipole
for site = 1:Nm
R=data.R_mat[site]
R=data.local_rotations[site]
u[1,site]= Avec_pref[site] * sqrt_halfS * (R[1,1] + 1im * R[1,2])
u[1,site+nmodes] = Avec_pref[site] * sqrt_halfS * (R[1,1] - 1im * R[1,2])
u[2,site]= Avec_pref[site] * sqrt_halfS * (R[2,1] + 1im * R[2,2])
Expand Down

0 comments on commit 9684c20

Please sign in to comment.