Skip to content

Conversation

@jhdark
Copy link
Contributor

@jhdark jhdark commented Mar 10, 2025

Proposed changes

With this change, we can read unstructured and structured files from openmc

Types of changes

What types of changes does your code introduce to openmc2dolfinx?

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Code refactoring
  • Documentation Update (if none of the other choices apply)
  • New tests

Checklist

  • Unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

Comment on lines 95 to 105
# Extract all cell connectivity data at once
cell_connectivity_raw = np.array(
[
[
self.grid.GetCell(i).GetPointId(j)
for j in range(self.grid.GetCell(i).GetNumberOfPoints())
]
for i in range(num_cells)
],
dtype=int,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess for large meshes we want to "numpify" this

@codecov
Copy link

codecov bot commented Mar 11, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@jhdark jhdark merged commit daa4528 into main Mar 11, 2025
9 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.

3 participants