Access .msh info to be written without writing .msh in C++ API
Hi, I'm wondering is there a way to access the mesh information that would be written to a .msh file, without having to create the .msh file. I'm currently trying to find a way of passing the mesh off to a libmesh based program without having to write and then read the .msh file. I noticed in the code it seems to be stored in GModel but I can't seem to access it.
Currently the flow is like this: Create Mesh in gmsh --> Write .msh file of mesh --> read in .msh file by libmesh reader --> Use mesh in model.
Instead I'd like to give the mesh directly to it, something like this: Create Mesh in gmsh --> Give Mesh to Libmesh reader --> Use mesh in model.
Is this possible with the C++ API?
Thanks for any help, Matt