How do I append a XDMFFile?
My code uses HDF5 for checkpointing and restarting, and XDMF for visualization. Unfortunately when I restart and open the XDMFiles again, the default behavior is to overwrite. As far as I can find, there's no option to open a XDMFFile with append permissions. Is this correct? It seems something that should be possible.
Edit: For now I've changed my workflow such that I will always write the new time step solutions to a new XDMF file; but this is not a good solution. I should be able to keep everything in a single file.
When you restart your simulations, load back the HDF5File in append mode.
When you are all done, iterate through the HDF5File fields you created and append them to a single XDMFFile.
Edit: As of version 2017.1.0, use XDMFFiles for viewing data and HDF5Files for saving the state of a simulation. For maximum efficiency, save a new and unique HDF5File for each run of your simulation. Once your simulations are finished, iterate through the HDF5Files and append each field to a single XDMFFile.