Skip to content

Commit

Permalink
KPM fix scaling of Bose factor and regularization.
Browse files Browse the repository at this point in the history
  • Loading branch information
hlane33 committed Nov 1, 2023
1 parent 3e705e3 commit b016c6d
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 @@ -45,7 +45,7 @@ interval [-1,1]. Regularization is treated using a cubic cutoff function and the
"""
function get_all_coefficients(M, ωs, broadening, σ, kT,γ;η=0.05)
f(ω, x) = regularization_function(x,η*σ) * broadening(ω, x*γ, σ) * (1 + bose_function(kT, x))
f(ω, x) = regularization_function(x*γ*σ) * broadening(ω, x*γ, σ) * (1 + bose_function(kT, x*γ))
output = OffsetArray(zeros(M, length(ωs)), 0:M-1, 1:length(ωs))
for i in eachindex(ωs)
output[:, i] = cheb_coefs(M, 2M, x -> f(ωs[i], x), (-1, 1))
Expand Down

0 comments on commit b016c6d

Please sign in to comment.