Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1253: RZ codes IAEA phase-space particle charge not used #1256

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

rtownson
Copy link
Collaborator

@rtownson rtownson commented Feb 18, 2025

Fix a critical bug in the RZ codes when using IAEA phase-space sources. All particles from the phase-space were assigned to be photons, due to a missing initialisation of some phase-space related variables. This bug affects all RZ code simulations using IAEA phase-space sources with particles other than photons. I believe the bug has existed since earlier than 2015.

Big thanks to @yamane89 for reporting the issue: #1253

@rtownson rtownson added this to the Release 2026 milestone Feb 18, 2025
@rtownson rtownson self-assigned this Feb 18, 2025
@rtownson rtownson requested a review from a team as a code owner February 18, 2025 17:13
Fix missing initialization of variables for IAEA phase-spaces in the RZ
codes. While this didn't result in a crash, it did result in a bug where
all particles were assigned a charge of 0 during the transport.
@mainegra
Copy link
Contributor

There is only one file modified. I couldn't find the macro making the initialization.

@rtownson rtownson merged commit ab341a6 into develop Feb 19, 2025
@rtownson rtownson deleted the fix-rz-iaea-phsp branch February 19, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants