Skip to content

Conversation

@termi-official
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.19%. Comparing base (f99e206) to head (08b2d2c).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1259   +/-   ##
=======================================
  Coverage   94.19%   94.19%           
=======================================
  Files          40       40           
  Lines        6662     6671    +9     
=======================================
+ Hits         6275     6284    +9     
  Misses        387      387           

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

Copy link
Member

@KnutAM KnutAM left a comment

Choose a reason for hiding this comment

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

I haven't checked the output, but it looks like it could fail for higher order geometric interpolations?

Nvm, looks correct on 2nd thought !

Edit3: Or no, it does look wrong...

end

"""
write_facetset(vtk::VTKGridFile, grid::AbstractGrid, facetset::String)
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice to match the interface from cellsets allowing a vector/set of keys?

Also, since this is not as trivial as cellsets, perhaps it could even be nice to have a lower-level interface providing just an AbstractVecOrSet{<:FacetIndex}, not requiring it to be stored in the grid?

@KnutAM KnutAM linked an issue Dec 14, 2025 that may be closed by this pull request
function write_facetset(vtk, grid::AbstractGrid, facetset::String)
z = zeros(getnnodes(grid))
for fi in getfacetset(grid, facetset)
for i in facets(getcells(grid, fi[1]))[fi[2]]
Copy link
Member

Choose a reason for hiding this comment

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

To make work for higher order elements, I think this is required.

Suggested change
for i in facets(getcells(grid, fi[1]))[fi[2]]
cell = getcells(grid, fi[1]
for cellnode in facetdof_indices(geometric_interpolation(cell))[fi[2]]
i = get_node_ids(cell)[cellnode]

@KnutAM
Copy link
Member

KnutAM commented Dec 14, 2025

Btw will (or can) this close #192, or is that already resolved?

@termi-official
Copy link
Member Author

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.

Facetset writer

3 participants