McCode
McCode copied to clipboard
The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes.
It seems that the command executed is simply mcgui/mxgui
See e.g. ILL_H5 where it is used for multiple Al windows
(May prevent execution of the code-generator on macOS 10) Test should be carried out wrt. the other "current" McStas and McXtrace releases, plus we should decide on which releases are...
It seems build was by mistake carried out as a "mcstas 1.7".
See http://new-nightly.mcxtrace.org/2022-03-16/McXtrace-1.x_CPU_MPICC_5e7/Test_Absorption/run_stdout_1.txt (segfault in MPI mode)
See content of http://new-nightly.mcstas.org/2022-03-18/McStas-2.x_CPU_MPICC_5e7/ILL_IN4/compile_stdout.txt "CRITICAL: User interrupt." ??
Workaround, in a terminal, run the commands 1) ```source /Applications/McXtrace-3.0.app/Contents/Resources/mcxtrace/3.0/miniconda3/bin/activate ``` 2) ```conda install gsl```
e.g. ``` m(c/x)plot directory/ --sweep monitorfile.mon ```
On my end it seems like the behavior differs between the 1.7 and 3.0 version. The EXTEND %{ if (!SCATTERED) ABSORB; %} seems to be ignored in McXtrace 3.0. [example](https://raw.githubusercontent.com/antoinepado/tt/main/dcm.instr)
There is a hard-coded call of mcplot somewhere, needs a mccode_config based switch