-
Notifications
You must be signed in to change notification settings - Fork 82
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
Bug in applyInputParams
of multiple material classes
#424
Comments
Looks like this just needs an @keckler would you mind filing a PR to fix? |
Does this bug only apply in this one file? I see several material have the |
It appears that it's only in one material but the issue may be because B4C has a different constructor. It would be nice if the API for the materials with these applyInputParams was consistent. Maybe in the past we had kwargs but broke them out into specific args? I don't remember the history off hand. |
@jakehader I think it is more than just the one material. I just scanned through the material classes in the framework, and in addition to B4C, it looks like the following material classes suffer from the same bug. Let me know if you disagree, maybe you see something that I don't. But I do agree that all the materials seem to apply the input parameters in different ways. I'm happy to fix the materials that I identified. But if people think there is a larger issue to be addressed her (i.e. making all the materials consistent in their |
Hi @keckler you're probably right on the others. If you have a suggested fix for B4C that you could generalized then that would probably be worthwhile to look at. |
PR added at #425 |
PR Merged! Thanks @keckler! |
The
applyInputParams
methods of multiple material classes contain a common bug when applying enrichments to particular isotopes/elements. Take, for example, adjusting the enrichment of B10 within the B4C class:If the user intentionally specifies
B10_wt_frac=0
, as in they want their absorber to have only B11, the enrichment will not be adjusted because the conditional evaluates toFalse
.This same bug applies to other material classes, including UO2, and possibly others.
The text was updated successfully, but these errors were encountered: