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 step limiter when losing all energy over a step #780

Merged
merged 1 commit into from
May 30, 2023

Conversation

sethrj
Copy link
Member

@sethrj sethrj commented May 30, 2023

This assigns the "range" limiter when a particle loses all energy over a step (even when it's not marked as range-limited) and has no at-rest interaction.

The "discrete" process will be incorrectly selected otherwise. This isn't a probelm currently because we also filter on track.status(), but we want the action ID to be consistent.

This assigns the "range" limiter when a particle loses all energy over a
step (even when it's not marked as range-limited) and has no at-rest
interaction.

The "discrete" process will be incorrectly selected otherwise. This
isn't a probelm currently because we also filter on track.status(), but
we want the action ID to be consistent.
@sethrj sethrj added bug Something isn't working physics Particles, processes, and stepping algorithms labels May 30, 2023
@sethrj sethrj requested a review from amandalund May 30, 2023 13:36
Copy link
Contributor

@amandalund amandalund left a comment

Choose a reason for hiding this comment

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

Good catch!

@sethrj
Copy link
Member Author

sethrj commented May 30, 2023

Thanks! Caught it with the upcoming execute/launch refactor 😉

@sethrj sethrj merged commit fbc3381 into celeritas-project:develop May 30, 2023
@sethrj sethrj deleted the range-limit-action branch May 31, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working physics Particles, processes, and stepping algorithms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants