Skip to content

Saving & loading edge tags in/from .msh files

Boris Martin requested to merge save_edges into master

Adds edge tags export/import in MSH4 format. It's a section ($EdgeTags, EndEdgeTags) whose first line is the number of exported tags. Then, for each tag, an additional line of the form "edgeTag Vertex1 Vertex2" is added for each edge.

  • Successful export/import on a manually partitioned mesh: if I generate a mesh with many entities, generate edge tags, then save a subset & load it, I get correct edges (I have gmshFEM test case with distributed meshes partitioned by hand)
  • Support for binary format
  • Generalization to faces for 3D
  • Test/support for Gmsh's partitioned meshes
  • Optimized export ? So far we export ALL tags, even from unneeded regions. (And when reading, we only add tags for existing vertices)
Edited by Boris Martin

Merge request reports