Describe the bug
Making an instrument with the source:
`COMPONENT src = Source_simple(
)
AT (0,0,57) RELATIVE ABSOLUTE`
Will throw an error when simulating, eg. mcrun test.instr but it will not throw an error with mcdisplay test.instr. Instead the command will just "hang".
I am not quite sure what a good solution to this would be. Maybe placing a check inside the mcdisplay section?
It seems to be a general issue, that the mcdisplay command does not trigger exits based on parameter sanitation placed in the Initialize section. An example is the PSD_monitor, where you can place an xmax that is less than the xmin, and the mcdisplay will hang, but the mcrun of said instrument will throw an error.
Describe the bug
Making an instrument with the source:
`COMPONENT src = Source_simple(
)
AT (0,0,57) RELATIVE ABSOLUTE`
Will throw an error when simulating, eg.
mcrun test.instrbut it will not throw an error withmcdisplay test.instr. Instead the command will just "hang".I am not quite sure what a good solution to this would be. Maybe placing a check inside the mcdisplay section?
It seems to be a general issue, that the mcdisplay command does not trigger exits based on parameter sanitation placed in the Initialize section. An example is the PSD_monitor, where you can place an xmax that is less than the xmin, and the mcdisplay will hang, but the mcrun of said instrument will throw an error.