Skip to content

Improved minimum_cell_size calculation#10

Open
psheehan wants to merge 2 commits into
mainfrom
better_minimum_cell_size
Open

Improved minimum_cell_size calculation#10
psheehan wants to merge 2 commits into
mainfrom
better_minimum_cell_size

Conversation

@psheehan

Copy link
Copy Markdown
Owner

The code used to use volume**1/3 to determine the minumum cell size for sub-pixeling, and this worked fine for fully three dimensional grids, but for 2D axisymmetric grids the axisymmetric-ness of it made the cell very large in the phi direction. This PR updates the code to explicitly calculate the "average" distance across each cell in each dimension, and takes the minimum value as the minimum cell size.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.87%. Comparing base (6294acc) to head (c2e2c5e).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #10      +/-   ##
==========================================
+ Coverage   88.82%   88.87%   +0.04%     
==========================================
  Files          11       11              
  Lines        2220     2229       +9     
==========================================
+ Hits         1972     1981       +9     
  Misses        248      248              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@psheehan psheehan mentioned this pull request Jun 5, 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