surface mesh refinement


I would like to refine a surface mesh and project a grid function from the coarser to the finer mesh. This is straightforward in the volume case, but in the case of a surface mesh I get a segmentation fault, see the attached files. (These are minimal examples, in my real problem I cannot just call
gfud.Set(x*y**2, definedon = meshCoarse.Boundaries(“outer”)), I really need to project the data from the coarse to the fine grid.)

Thank you very much in advance!

Best regards,