-
Notifications
You must be signed in to change notification settings - Fork 591
Check polyhedron_faces when determining equivalency #7951
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7951 +/- ##
=======================================
Coverage 96.40% 96.40%
=======================================
Files 150 150
Lines 32682 32684 +2
Branches 4118 4118
=======================================
+ Hits 31508 31510 +2
Misses 570 570
Partials 604 604 |
Why this instead of the cell array to cover all cell types? |
At least in the versions I've tested (9.4 and 9.5.X), polyhedron cells are stored in two separate vtkCellArrays.
There's a discussion on why and how this was changed: Given the failures for earlier versions, we're going to have to include backwards compatibility for this check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Should we also be checking the cell array is equal for other cell types?
I don't think so. We only included it here to make sure that we're genuinely changing the polyhedrons and not the underlying cell array. It's helpful for this test since VTK has been changing their API and if it's changed again, we can catch it here. |
Sorry I wasnt clear. I didn't mean due this test here. I meant to check the cell arrays during the equivalency check? I don't see this currently. |
It we don't we should. |
Check polyhedron faces when comparing the equivalency of two
UnstructuredGrids
.