McCode
McCode copied to clipboard
mcstas-2.5 and master branch: issue with position of input parameters to mcdisplay
With the attached instrument file, input parameters placed before ncount on the commandline are ignored, i.e.
mcdisplay pencilbeam.instr -n1e7 nslit=500 radius=0.0001 ROT=0
behaves correctly, showing
whereas
mcrun pencilbeam.instr ROT=0 -n1e7 nslit=500 radius=0.0001
does not, instead showing a rotated guide element:
As a side note, mcrun works OK in this respect, so a solution for better handling of these instrument par=value pairs may be found there
I confirm this bug is still there in mccode-3