Improve mapping data on a Function by coordinates

Note that you can use mesh.geometry.input_global_indices together with dolinx.mesh.entities_to_geometry to get the original node index in your Gmsh file.
https://docs.fenicsproject.org/dolfinx/v0.8.0/python/generated/dolfinx.cpp.mesh.html#dolfinx.cpp.mesh.Geometry_float32.input_global_indices

This is assuming you can extract the index from Gmsh in step 1.