-
Notifications
You must be signed in to change notification settings - Fork 54
Using Union in McStas 3.x
Peter Willendrup edited this page Dec 21, 2022
·
8 revisions
Due to differences in the underlying McStas system between the McStas 2.x and 3.x series, all instruments using the Union subsystem need two new components added to work in McStas 3.x:
/* To be included before any other Union comps and ALWAYS named init: */
COMPONENT init = Union_init()
AT (0,0,0) ABSOLUTE
and
/* To be included as the very last Union comp: */
COMPONENT stop = Union_stop()
AT (0,0,0) ABSOLUTE
It is possible to name the instance of the Union_init
component something other than init
, e.g.
COMPONENT Init2 = Union_init()
In this case the user must specify this initialiser-name in every single Union component used, by means of setting the init="Init2"
parameter. (The only exception to this rule is Union_stop
, which takes no parameters.)