Skip to content

Conversation

@jtramm
Copy link

@jtramm jtramm commented Jan 16, 2024

In the main branch of OpenMC, we have a check when performing pointwise XS lookups to just set fission and nu_fission to zero if fissionable_ is false. In our offloading branch, this test isn't present. I'm not sure if this can cause issues, or if the underlying nuclide fission/nu_fission data is zero already, but worth adding this in to maintain the same logic.

In the main branch of OpenMC, we have a check when performing pointwise XS lookups to just set `fission` and `nu_fission` to zero if `fissionable_` is false. In our offloading branch, this test isn't present. I'm not sure if this can cause issues, or if the underlying nuclide fission/nu_fission data is zero already, but worth adding this in to maintain the same logic.
@jtramm jtramm requested a review from paulromano January 16, 2024 18:32
Copy link

@paulromano paulromano left a comment

Choose a reason for hiding this comment

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

I think the intent of that if block was to prevent extra flops/lookups. Technically it's not needed and you could interpolate between the two zeros. Do you have a sense of which would be better performing on GPU?

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