Skip to content

Commit

Permalink
Error message for Blume-Maleev with single-q
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarros committed Sep 4, 2024
1 parent 8acce27 commit 0c91dbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Measurements/MeasureSpec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ function ssf_custom_bm(f, sys::System; u, v, apply_g=true, formfactors=nothing)
e3 = normalize(u × v)

return ssf_custom(sys::System; apply_g, formfactors) do q, ssf
if iszero(q)
error("Blume-Maleev axis system not defined at zero q")
end
if abs(q e3) > 1e-12
error("Momentum transfer q not in scattering plane")
end
Expand Down

0 comments on commit 0c91dbf

Please sign in to comment.