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

Refactor of translation from mesh handle to index for DAGMC geometry. #2687

Merged
merged 3 commits into from
Sep 14, 2023

Conversation

pshriwise
Copy link
Contributor

Description

As I was reviewing #2655, I noticed that we have some convoluted calls in next_cell for getting the index of DAGMC volumes and surfaces into model::cells/model::surfaces. This PR adds a few methods to clean that up a bit and avoid someone getting lost in logic they shouldn't have to worry about outside of the DAGUniverse class. Just a refactor, so no additional tests here.

Fixes # (issue)

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format on any C++ source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)

@pshriwise pshriwise enabled auto-merge (squash) September 7, 2023 22:52
@pshriwise pshriwise disabled auto-merge September 7, 2023 22:52
Copy link
Contributor

@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.

One small comment but otherwise this looks good to me.

include/openmc/dagmc.h Outdated Show resolved Hide resolved
@paulromano paulromano enabled auto-merge (squash) September 13, 2023 18:55
@paulromano paulromano merged commit ccb76b3 into openmc-dev:develop Sep 14, 2023
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