Skip to content

Commit

Permalink
Fix iters bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarros committed Dec 18, 2024
1 parent 7f2a175 commit 2d43b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KPM/SpinWaveTheoryKPM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function intensities2!(data, swt_kpm::SpinWaveTheoryKPM, qpts; energies, kernel:
return w
end

resolution = (kernel.fwhm/2) / (-log10(tol))
resolution = (kernel.fwhm/2) / max(-log10(tol), 0)

for ξ in 1:Nobs
mulA!(v, view(u, :, ξ))
Expand Down

0 comments on commit 2d43b9d

Please sign in to comment.