Skip to content

Improve serial tripolar grid fold tests#5405

Merged
briochemc merged 9 commits intomainfrom
bp/improved_serial_tripolar_tests
Mar 22, 2026
Merged

Improve serial tripolar grid fold tests#5405
briochemc merged 9 commits intomainfrom
bp/improved_serial_tripolar_tests

Conversation

@briochemc
Copy link
Copy Markdown
Collaborator

@briochemc briochemc commented Mar 17, 2026

This PR makes the serial tripolar test a bit cleaner and more comprehensive by (i) making sure that all halo points and staggered locations are tested, and (ii) by adding a slightly different way of testing the rotational symmetry (a double check).

This PR does the following:

  • Adds FF (Face, Face) field to tests all 4 stagger locations
  • Extends indices for tests to cover the entire halo region
  • Adds a extra test using the rot180 function
  • Fixes ASCII diagram pivot point placement (F was on wrong row)
  • Organizes tests into @testset blocks

I wanted to do this to make sure that the serial fold is 100% correct, after a discussion with @simone-silvestri. We also discussed changing the RightFaceFolded implementation to have no extra row but Ny+1-sized v, as this will likely be simpler for users and help with implementing the distributed case. If this happens these tests will need to be adjusted, but I think it should be fairly easy to make these adjustments.


I have also added a validation script that visualizes the origin of all the north halo fills, with arcs going from interior source to halo destination, for all topologies and all field locations. The PNGs it produces:

image image

These might be helpful for the distributed case too.

- Add FF (Face, Face) field to tests all 4 stagger locations
- Add `rot180` symmetry/antisymmetry
- Fix ASCII diagram pivot point placement (F was on wrong row)
- Group tests into @testset blocks for better diagnostics
@briochemc
Copy link
Copy Markdown
Collaborator Author

I just added some (serial) tests and a validation/plotting script, so not sure why the distributed test is failing. Any objections to merging?

@simone-silvestri
Copy link
Copy Markdown
Collaborator

There are library problems on the caltech cluster where we run the tests that they are trying to solve. It is an unrelated issue, let's merge!

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.49%. Comparing base (188ee4d) to head (08e9fb5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5405      +/-   ##
==========================================
+ Coverage   68.84%   73.49%   +4.64%     
==========================================
  Files         398      398              
  Lines       21963    22673     +710     
==========================================
+ Hits        15121    16664    +1543     
+ Misses       6842     6009     -833     
Flag Coverage Δ
buildkite 68.84% <ø> (ø)
julia 68.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@briochemc briochemc merged commit de34809 into main Mar 22, 2026
66 checks passed
@briochemc briochemc deleted the bp/improved_serial_tripolar_tests branch March 22, 2026 10:54
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