How to transfer a solution from one code to another?

Use XDMFFile.write_checkpoint, as described for instance here: Strange behaviour with write_checkpoint / read_checkpoint - #7 by dokken