read, optimize, write?
I would like to read a tetrahedral mesh from tmp_filename
(a msh file) and optimize it. This
gmsh.initialize()
gmsh.model.add("Mesh from file")
gmsh.merge(tmp_filename)
gmsh.model.mesh.optimize("Netgen")
gmsh.write(tmp_filename)
gmsh.finalize()
doesn't seem to do anything. Any hint on what may be wrong? Perhaps a sync of sorts?