-
Notifications
You must be signed in to change notification settings - Fork 521
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
Print warning if no natural isotopes when using add_element
#2926
Comments
Perhaps we could add to the perhaps something like
|
Is this issue still open? I'd love to attempt to tackle it. |
I think the issue is all yours @cxtherineyu thanks for volunteering |
My quick two cents. A custom Warning class should be defined so warnings can be correctly filtered by the end user instead of just calling |
Description
When adding nuclides to a material with
add_element
, OpenMC will silently do nothing if there are no natural nuclides of that element (e.g., plutonium). It would be nice if the user encountered a warning about this, because if the user was trying to do this in the first place they did not realize/recognize that there weren't actually any natural isotopes for that element.Alternatives
Print a warning if
add_element
does not add any nuclides.Compatibility
New feature, better user experience.
The text was updated successfully, but these errors were encountered: