McStasMcXtrace / McCode

The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes.
https://github.com/McStasMcXtrace/McCode/wiki
GNU General Public License v3.0
78 stars 54 forks source link

McStas PowderN: Using both d_phi and d_omega supresses incoherent scattering #1718

Closed willend closed 1 week ago

willend commented 2 months ago

Weirdly enough, setting both d_phi and d_omega in PowderN seems to suppress incoherent scattering.

Asking for both is anyway nonsensical, solution should be to exit in error if this is done.

willend commented 1 week ago

Asking for both is in fact not nonsensical: d_omega must be supplied with a target_index