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

Binary Gmsh files #603

Open
petsuter opened this issue Oct 30, 2024 · 1 comment
Open

Binary Gmsh files #603

petsuter opened this issue Oct 30, 2024 · 1 comment

Comments

@petsuter
Copy link

Gmsh version 2 legacy files can be binary or text files. For text files the $MeshFormat version-number file-type data-size has file-type as 0. Python libraries like meshio default to binary and write file-type as 1. (The text format can be requested with binary=False.)

I think ElmerGrid only supports the text variant of the Gmsh 2 file format, right? Perhaps a check/warning in egconvert.c could be added? (At least I ran into confusing errors with a binary Gmsh 2 file and switching to text fixed it.)

Thanks.

@richb2k
Copy link
Contributor

richb2k commented Nov 1, 2024

A check for a gmsh binary input file has been added. Please test a recent (1 Nov 2024 or newer) build and let us know if it works for you.

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

No branches or pull requests

2 participants