You need to use write_checkpoint and read_checkpoint, see for instance: Loading xdmf data back in
write_checkpoint
read_checkpoint