From pkwi at dtu.dk Tue Nov 3 09:10:52 2026 From: pkwi at dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Tue, 3 Nov 2026 09:10:52 +0000 Subject: [NOBUGS] McStas/McXtrace 3.10.2 release, new GitHub-based websites, in-sync Debian packages Message-ID: <99FB8801-005A-4D50-800A-260F1D2DCC49@dtu.dk> Dear all, Following issues with the DTU-based McStas/McXtrace websites and the mccode.org Debian package repo, a quick resurrection-operation was performed yesterday: * The main mcstas.org and mcxtrace.org websites are now served from GitHub (www2.mcstas.org and www2.mcxtrace.org are at DTU and serve as backup-only) * IMPORTANT for Debian/Ubuntu/Linux Mint users: * A new Debian repository has replaced the old mccode.org-based repo, to transition please follow instructions at https://mccode-dev.github.io/debian/ * From the new McStas/McXtrace 3.10.2 (see below) and forward: * all platforms are released together (automatically) and includes * conda-forge releases * Just a usual (platforms arr Linux x86_64 and arm64, macOS x86_64 and arm64, Windows x86_64) * Debian packages in the new Debian-repo * supplemented by archives for x86_64 and arm64 directly on the GitHub release * macOS-bundles * fully conda-based, are available directly on the GitHub release * Windows installers * available directly on the GitHub, MSVC version is fully conda-based, MinGW version partly conda-based Going forward we will lower the number of release-announcements and instead summarise main work done ~ once pr. quarter. This will likely be in connection with new major/minor-number releases such as the future 3.11.0 and 4.0.0. ___________________ Changes in McStas/McXtrace 3.10.2 Covers all changes since 3.10.0, including those already released in 3.10.1. Highlights * NeXus output on native HDF5: McCode now writes NeXus files directly with HDF5, replacing the frozen NeXus API library (napi/libNeXus), which is no longer a dependency. NeXus support only needs HDF5. NeXus output can now also be plotted with mcplot, mcplotdiff and mccoplot, and MPI NeXus scans keep every step's events. By @willend. * Planar monitors restore the ray on a miss: about 40 simple monitors in McStas and McXtrace (PSD_monitor, L_monitor, E_monitor, TOF_monitor, ...) now leave rays that miss them unchanged, as Monitor_nD already did. Previously such rays could be lost. In McXtrace, ALLOW_BACKPROP is now honoured as in McStas, so some rays that used to be absorbed now survive. Note: results can change slightly. By @willend (fixes #2906). * Corrected sample physics: Phonon_simple and the Union PhononSimple_process now scale the one-phonon cross-section as in Squires (eq. 3.120), giving about 12.7 times higher intensity than before. The Union IncoherentPhonon_process gets the correct ray weight normalisation and its three-phonon total cross-section, Multilayer_Sample substrate incoherent scattering now works, and Single_crystal_inelastic, SANS_benchmark2 and StatisticalChopper are also corrected. Note: results for these components change, some substantially. By @henrikjacobsenfys, Daniel Lomholt Christensen (@Lomholy), @mads-bertelsen-agentic and @willend. * McXtrace sources and optics corrected, SOLEIL models realigned: Bending_magnet now gives the correct flux and samples correctly, Mirror_curved reflects as intended, Single_crystal absorption is fixed, and Source_lab uses xraylib for any single-element anode, with no data file needed. Many SOLEIL beamline models were repaired: mirror radii and angles, the Si lattice constant (5.4309 ??, not 5.4909 ??) and DCM alignment, so the beams now reach the samples as designed. Note: results for these components and instruments change, some substantially. By @antoinepado, @farhi and @willend. * Component review: GPU, memory and robustness fixes: a systematic review of the component libraries fixed GPU race conditions, out-of-bounds table and root indices, memory leaks, uninitialised values and name clashes between components used in the same instrument. The 16 standalone MCViNE components and most SANS/SAXS contributed samples now run on GPUs (OpenACC). By @willend. * Solid, coloured instrument drawings: under --trace=2, guides, mirrors, monochromators, beamstops, collimators, choppers and many other components are now drawn as filled surfaces, and components can switch pen colour with mcdis_pencolor("#rrggbb"). Union volumes can be shown as polyhedra, large Union_mesh geometries display much faster, and ESS_butterfly draws colour-coded solid moderators. mcdisplay-webgl(-classic) gains Surfaces/Lines toggles and a surface opacity slider, and overlapping transparent surfaces render correctly. By @willend, Daniel Lomholt Christensen (@Lomholy) and @mads-bertelsen-agentic. * New home for packages and downloads: the Debian/Ubuntu packages are now served from the McCode apt repository at mccode-dev.github.io/debian, replacing packages.mccode.org, and the macOS and Windows bundles are attached to the GitHub releases. See the updated install instructions. By @willend. * %Test: and %TestScan: instrument headers: all example instruments now use the new names for their test lines (%Example: and %Scan: are still accepted). mctest compiles in parallel with -j N|auto, compiles only with -n0, and reports compilation and simulation time separately. By @willend. The full, categorised list of changes, common to McStas and McXtrace as well as specific to each, is in the McCode v3.10.2 release notes on GitHub. Full Changelog: https://github.com/mccode-dev/McCode/compare/v3.10.0...v3.10.2 Best, Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent DTU Physics [image001.gif] Technical University of Denmark [image002.gif] Department of Physics Fysikvej Building 307 DK-2800 Kongens Lyngby Main office at ESS DMSC Building 305 DK-2800 Kongens Lyngby Direct +45 2125 4612 Mobil +45 2125 4612 Fax +45 4593 2399 pkwi at fysik.dtu.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 58 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: image002.gif URL: