-
Hi all, I am working on a custom version of Guide_gravity.comp that keeps track of the times t at which there is a reflection and the neutron perpendicular energy at the same point. In order to store these values I added
to the
Here the full component: Now, I have minimum working instrument with two guides:
But the goal is to implement this in a larger model with 33 divergent guides:
So my question is, what in the instrument file could influence the scoping of component variables ?. The implementation seems identical to the testing instrument. I run the instruments as: McStas Version: 3.4.55 (clean from conda channel) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
For anyone who is facing the same problem: the fact that I was loading a standard Guide_gravity before my custom component was messing up the struct definition. Converting them to the custom guide fixed it for me. |
Beta Was this translation helpful? Give feedback.
-
@nicriz thanks for reporting that - so the solution was to use another name / set of defines for your modified struct? |
Beta Was this translation helpful? Give feedback.
-
@nicriz I will by the way reopen the discussion (first of a kind in fact, contrats :-D ) to make it look a little more active here :-) |
Beta Was this translation helpful? Give feedback.
-
Great, sorry for not responding earlier and thanks for figuring this out yourself @nicriz. ;-) Let me know if everything is aok now? |
Beta Was this translation helpful? Give feedback.
For anyone who is facing the same problem: the fact that I was loading a standard Guide_gravity before my custom component was messing up the struct definition. Converting them to the custom guide fixed it for me.