This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

XDMF and HDF5

+1 vote

Should I save the data in both XDMF and HDF5 if I would like to re-read and visualize the results as well? Or the hdf5 file coupled with the xdmf file is appropriate for re-reading? I am asking because the documentation says: "XDMF is not suitable for checkpointing as it may decimate some data."

asked Mar 24, 2016 by str FEniCS User (1,600 points)

1 Answer

+1 vote
 
Best answer

Yes. Hdf5 can restore a Function, for checkpointing. Xdmf will save complete information only for DG0 and CG1 spaces, otherwise it interpolates. Even if you use CG1 or DG0, there is no mechansim to read a Function from XDMF.

answered Mar 24, 2016 by chris_richardson FEniCS Expert (31,740 points)
selected Mar 24, 2016 by str
...