Allow exporting a refined mesh from HyTeG
In the last developer meeting the funtionality for exporting a refined mesh from HyTeG to import into other FEM libraries to run comparisons was requested. This MR provides this functionality.
The gmsh::exportRefinedMesh()
function generates a minimal MSH4.1 file containing the three sections
- MeshFormat
- Nodes
- Elements
These are enough to describe the plain mesh. Some applications might also require an Entities section. We could generate that, too, if need be. The current implementation uses the macro-primitives as entities and we could base the information in an Entities section also on these.
The implementation seems to work, as one can import the generated files into Gmsh or reimport them into HyTeG.
Edited by Marcus Mohr