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 bug when S(a,b) tables appear in depletable material #1605

Merged
merged 3 commits into from
Jul 15, 2020

Conversation

paulromano
Copy link
Contributor

A user noted that when they used the c_H_in_ZrH and c_Zr_in_ZrH S(a,b) tables in a material that was depletable, they ran into an error on the second iteration where the code complains that a nuclide is present in two tables. This is due to a bug in how thermal scattering tables are assigned (there was an implicit assumption this was only done once, but in depletion, the assignment happens each time a material is updated).

Unrelated to the above: I also put in a small fix here to ensure IncidentNeutron.from_endf works with all TENDL-2019 files. Some of the fissionable nuclides (e.g., Ra234) list only one precursor group in MF=1,MT=455, but then list 6 separate energy spectra in MF=5,MT=455. The intention is to use the probability of selecting the energy spectra as a way of turning 1 group into 6 (this is how NJOY treats it when producing ACE files).

@paulromano
Copy link
Contributor Author

Just added one more bugfix for #1600.

Copy link
Contributor

@drewejohnson drewejohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and simple PR @paulromano!

Looks like Travis is being a bit funky though. The build has passed, but there is a second CI check that has stalled? Or isn't reporting back?

@paulromano
Copy link
Contributor Author

Yeah, something wacky going on with Travis there. I've temporarily disabled the status check rules so you should be able to merge now.

@drewejohnson drewejohnson merged commit 9cecff3 into openmc-dev:develop Jul 15, 2020
@paulromano paulromano deleted the two-bugfixes branch July 15, 2020 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants