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

Disallow non-current scores with a surface filter #1844

Merged
merged 1 commit into from
Jun 8, 2021

Conversation

paulromano
Copy link
Contributor

If you specify a surface filter on a tally and ask for a score other than current, OpenMC will allow it even though it shouldn't (e.g., a user can ask for a surface flux, even though this is not yet implemented). This PR simply adds a fatal error if you try to specify a score other than current in conjunction with a surface (or mesh surface) tally.

@shimwell
Copy link
Member

shimwell commented Jun 2, 2021

Nice addition, wondering if this is a opportunity to introduce a not yet implemented error type.

Copy link
Contributor

@pshriwise pshriwise left a comment

Choose a reason for hiding this comment

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

Pretty straightforward. Thanks @paulromano!

@pshriwise pshriwise merged commit f69149b into openmc-dev:develop Jun 8, 2021
@paulromano paulromano deleted the surface-tally-bug branch June 9, 2021 01:23
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.

3 participants