{phys}[foss/2023a] McXtrace v3.5.24#22834
Conversation
…dsen/easybuild-easyconfigs into 20250502101111_new_pr_McXtrace3524
|
I think you added |
|
Yes indeed that was a mistake - I'll fix that. Thanks for noticing! The two are very closely related and almost identical. |
|
@boegelbot: please test @ jsc-zen3 |
|
@jfgrimm: Request for testing this PR well received on jsczen3l1.int.jsc-zen3.fz-juelich.de PR test command '
Test results coming soon (I hope)... Details- notification for comment with ID 2857774132 processed Message to humans: this is just bookkeeping information for me, |
|
Test report by @boegelbot relevant lines from the log file: |
Also need bison and flex for building. Make those explicit Co-authored-by: Jasper Grimm <[email protected]>
|
@boegelbot please test @ jsc-zen3 |
|
@jfgrimm: Request for testing this PR well received on jsczen3l1.int.jsc-zen3.fz-juelich.de PR test command '
Test results coming soon (I hope)... Details- notification for comment with ID 2860278348 processed Message to humans: this is just bookkeeping information for me, |
|
Test report by @boegelbot |
|
Test report by @Micket |
Micket
left a comment
There was a problem hiding this comment.
copied over my feedback from the slack channel here.
There was a problem hiding this comment.
I've fixed one thing according to suggestion. The other was fixed by switching that dependence off for now. The "real" solution probably requires another new eb-PR - this is now #23224. It was caused by upstream no longer including it as a git submodule.
|
Yeah - me bad. The I should really know exactly how McXtrace is built - I am one of the original authors in fact. This was a silly mistake. |
|
To provide a bit more background. McXtrace is in essence a specialized c-code generator. When the generated code is to be compiled the mcpl-lib has to be linked. There's a python script in the distro that helps automate the process. To summarise: only in a late stage are the libs needed. |
|
So the only important thing about MCPL w.r.t. McXtrace is that |
|
That's almost enough - for it to work correctly in all cases it requires that the binary mcpl-config is available on the path as well. |
|
Test report by @Crivella |
|
From the configure step It seems I am unsure if we should keep it considering you have a separate PR for McStas (I guess we should also add a comment that McStas is built separately in easybuild to avoid people turning it on in the future without realizing it) EDIT: an alternative might be to rename this to |
|
Again a bit of background: McXtrace and McStas are very much similar and share some of the code base which is why they reside in the same repo. The former deals with X-rays, the latter with neutrons. Historically McStas is the older sibling, years later McXtrace was built as a port of it. Apart from some shared common code, they do not work together, and have always been considered two separate entities. The name mccode is almost exclusively used by the core development team. All-in-all, there's a practical case for having a single EC-file, but I would not recommend it - very few people would recognize it. Is it possible to maintain a single mccode EC-file, but with shallow McXtrace and McStas "virtual" EC-files that depend on it? EDIT: That'd be using the "bundle"-easyblock I suppose |
|
@boegelbot please test @ jsc-zen3 |
Thanks for the info. |
|
@Crivella: Request for testing this PR well received on jsczen3l1.int.jsc-zen3.fz-juelich.de PR test command '
Test results coming soon (I hope)... Details- notification for comment with ID 3244875953 processed Message to humans: this is just bookkeeping information for me, |
|
Test report by @boegelbot |
|
None of the required changes have been applied? |
Co-authored-by: Davide Grassano <[email protected]>
Co-authored-by: Davide Grassano <[email protected]>
Co-authored-by: Davide Grassano <[email protected]>
|
Ah - apologies - yet another silly mistake. I thought I accepted the changes by clicking resolved. "I owe you a beer at the airport" as we say in DK, |
|
@boegelbot please test @ jsc-zen3 |
|
@Crivella: Request for testing this PR well received on jsczen3l1.int.jsc-zen3.fz-juelich.de PR test command '
Test results coming soon (I hope)... Details- notification for comment with ID 3245232752 processed Message to humans: this is just bookkeeping information for me, |
|
Test report by @boegelbot |
|
Going in, thanks @ebknudsen! |
|
Thanks @Crivella! Much appreciated! |
McXtrace is an X-ray ray tracing package for Monte Carlo simulation of X-ray scattering experiments and instrumentation. McXtrace is an X-ray port of its neutron counterpart McStas (#22833)
It works by describing the geometry in a domain specific language. The description is then transformed by a lex/yacc-based code generator into a c-program, which in turn may be compiled into an executable.
Code-generation to a large part consists of concatenating pieces of code from various file, which is why the installed software library contains a set of .c and .h-files. This is by design.