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

Move unit enumeration to corecel and improve assertion flexibility #1197

Merged
merged 7 commits into from
Apr 23, 2024

Conversation

sethrj
Copy link
Member

@sethrj sethrj commented Apr 23, 2024

I'm extracting a few changes from #1194 that I added for the raytrace work (to improve feedback to the user). The Celeritas unit system enum now lives in corecel/Types, so that it can be used by geocel. I also refactored the runtime assertion errors for readability, and I've changed "not configured" and "not implemented" to runtime errors, since we might want to let users encounter those naturally rather than adding additional validation checks. (For example, it's easier to let the code hit a NOT_CONFIGURED("Vecgeom") then have that as a debug check and do an additional validation on the user input.)

@sethrj sethrj added core Software engineering infrastructure minor Minor internal changes or fixes (including CI updates) labels Apr 23, 2024
@sethrj sethrj requested a review from amandalund April 23, 2024 17:39
@sethrj
Copy link
Member Author

sethrj commented Apr 23, 2024

@amandalund This should be pretty quick: and I think @elliottbiondo and @mrguilima gave most of it a look-through in the other PR.

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.

Looks good @sethrj!

@sethrj sethrj merged commit 225cba4 into celeritas-project:develop Apr 23, 2024
26 checks passed
@sethrj sethrj deleted the core-assert branch April 23, 2024 23:40
src/corecel/Assert.cc Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Software engineering infrastructure minor Minor internal changes or fixes (including CI updates)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants