McCode icon indicating copy to clipboard operation
McCode copied to clipboard

mcstas-2.5 and master branch: issue with position of input parameters to mcdisplay

Open willend opened this issue 6 years ago • 2 comments

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 screenshot 2019-02-05 at 10 31 33

whereas

mcrun pencilbeam.instr ROT=0 -n1e7 nslit=500 radius=0.0001 

does not, instead showing a rotated guide element: screenshot 2019-02-05 at 10 31 48

pencilbeam.instr.txt

willend avatar Feb 05 '19 09:02 willend

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

willend avatar Feb 05 '19 09:02 willend

I confirm this bug is still there in mccode-3

farhi avatar May 13 '23 11:05 farhi