Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

McXtrace/McStas 3.0 : Mask needs the masking variable to be atomic. #1119

Open
ebknudsen opened this issue Mar 25, 2021 · 0 comments
Open

McXtrace/McStas 3.0 : Mask needs the masking variable to be atomic. #1119

ebknudsen opened this issue Mar 25, 2021 · 0 comments

Comments

@ebknudsen
Copy link
Contributor

For 2nd gen cogen, Mask uses the masking variable to extract the pixel value of the mask at the point of intersection, for use with the virtual operation. This is obviously no longer possible. In the McXtrace-3.0 branch this is wrongly fixed using a USERVAR which cannot be declared in-component (yet?). For McStas-3.0 masking is simply allowed to be set on the component struct (old behaviour), which leads to a race condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant