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

Making methods const where possible #906

Merged
merged 2 commits into from
Sep 16, 2023

Conversation

pshriwise
Copy link
Member

Description

This PR adds a const identifier to the cross-reference methods to translate between entity handle, ID, and index.

There are probably other methods that this identifier can be applied to, but I didn't search them all out and figured it made sense to change these for sure.

Motivation and Context

In downstream applications, it would be nice to be able to use const DagMC* when possible for safety. (see openmc-dev/openmc@37a10fb).

Behavior

No change in the behavior of the code here. Just improved practices.

Copy link
Member

@gonuke gonuke left a comment

Choose a reason for hiding this comment

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

LGTM. Any chance we can merge #904 first to make sure our testing is on the newest images?

@gonuke
Copy link
Member

gonuke commented Sep 14, 2023

Can you rebase this to get the tests to run again on the new images?

@pshriwise
Copy link
Member Author

Can you rebase this to get the tests to run again on the new images?

All set!

@gonuke
Copy link
Member

gonuke commented Sep 16, 2023

Thanks @pshriwise

@gonuke gonuke merged commit 7337760 into svalinn:develop Sep 16, 2023
8 checks passed
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.

None yet

2 participants