Skip to content
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

ignore cell_sets "gmsh:*" inserted by meshio #695

Merged
merged 1 commit into from
Aug 24, 2021
Merged

ignore cell_sets "gmsh:*" inserted by meshio #695

merged 1 commit into from
Aug 24, 2021

Conversation

gdmcbain
Copy link
Contributor

Fixes #691. It or something like it is required to be able to read a valid MSH 4.1 generated by Gmsh, e.g. the backward-facing step of exx 24, 27; meshio.read inserts a cell-set called "gmsh:bounding-entities" which contains invalid cell-indices, causing our skfem.io.meshio.from_meshio to raise an IndexError in attempting to parse it as a boundary.

This cherry-picks ff83c84 from #693 which had expanded beyond its bounds, as discussed there.

@gdmcbain gdmcbain requested a review from kinnala August 23, 2021 23:12
@kinnala kinnala merged commit a1496b6 into kinnala:master Aug 24, 2021
@gdmcbain gdmcbain deleted the 691-msh41 branch August 24, 2021 08: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.

from_meshio fails on old ex27
2 participants