Skip to content

Ensure that property setters are used in CylindricalMesh and SphericalMesh - #2709

Merged
pshriwise merged 4 commits into
openmc-dev:developfrom
paulromano:mesh-grid-setters
Sep 27, 2023
Merged

pshriwise merged 4 commits into
openmc-dev:developfrom
paulromano:mesh-grid-setters

Conversation

@paulromano

Copy link
Copy Markdown
Contributor

Description

I noticed that the constructors for CylindricalMesh and SphericalMesh were directly setting _r_grid, _phi_grid, etc. instead of going through the properties, which perform checks on the values. This PR fixes and makes corresponding changes in the tests.

I've also included a few small fixes for warnings that were being raised during tests.

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 followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

@pshriwise pshriwise left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for these updates @paulromano. 🧇's rule.

@pshriwise
pshriwise merged commit 0c6da38 into openmc-dev:develop Sep 27, 2023
@paulromano
paulromano deleted the mesh-grid-setters branch September 27, 2023 11:17
stchaker pushed a commit to stchaker/openmc that referenced this pull request Oct 25, 2023
church89 pushed a commit to openmsr/openmc that referenced this pull request Jul 18, 2024
apingegno pushed a commit to apingegno/openmc that referenced this pull request May 7, 2026
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