-
Notifications
You must be signed in to change notification settings - Fork 60
Component development
Peter Willendrup edited this page Jan 14, 2026
·
12 revisions
- Instrument/comp/particle parameter/variable scope, access and their use,
see table Variables and Scopes - Tips for Writing Components
(includes an exercise and a walkthrough of Slit.comp)
- Writing a parsable mcdoc component header
- Write an example instrument
- The mctest tool can be used to test a set of McStas/McXtrace instruments
- Please always be mindful and act on warnings from your c-compiler.
- Run the mccode linter
- Debugging the c-code