How to collect the global mesh without writing a file

I hope that this helps: How to use the shape parameter of dolfinx.fem.FunctionSpace?, but the discourse interface is telling me that

If you have an unrelated issue, please start a new topic instead.