Save the function in xdmf format ( XDMFFile, use write_checkpoint rather than write to ensure the details of the FEM is preserved). Then it may be easier to read the xdmf file from dolfinx.
Disclaimer: I haven’t tried it myself, so I’m not certain if the file formats are completely compatible.
I’m trying to recreate the field I created in dolfin.
Since I’m new in dolfinx I’ve being having some troubles. My goal is to create a subsection with some markers.
My problem is that on side I’ve dof indices and on the other cells indices.