[ Identification | Description | Examples | Input parameters | Links ]
Unittest_JUMP_RELATIVE InstrumentUnit test for relative JUMP targets, see docs/GRAMMAR/ADR-records/ADR_20261007_GRAMMAR_FIXES.md One unit of intensity is emitted from a 1x1 m square. - Back jumps to PREVIOUS(2), i.e. to Target, 'iter' times in total (JUMP ... ITERATE), so the Mon monitor in between is passed 'iter' times and reads Mon_I = iter. - Skip jumps to NEXT(2), i.e. over Skipped and onto Landed, so Skipped_I = 0 and Landed_I = 1. Before the fix, relative targets were used as absolute component indices: JUMP PREVIOUS(n) crashed the code generator and JUMP NEXT(n) went to component n. JUMP PREVIOUS is PREVIOUS(1) and JUMP NEXT is NEXT(1).
| Name | Unit | Description | Default |
| iter | 1 | Number of passes through Mon (JUMP ITERATE count) | 3 |
| Pp0 | 1 | Dummy input parameter used internally | 0 |
Unittest_JUMP_RELATIVE.instr.
[ Identification | Description | Examples | Input parameters | Links ]
Generated for mcstas 3.10.0