XDMF methods for write and read (checkpointing)
Michal Habera
Branch: michal/xdmf-write-and-read-experimental
Branch: master
Merged
Merged pull request
Merge branch 'michal/xdmf-write-and-read-experimental'
Merge branch 'michal/xdmf-write-and-read-experimental'
This PR extends current
XDMF
interface with methodswrite_checkpoint
andread_checkpoint
to write and read Function in parallel.New functionality is based on existing HDF methods and data design is the same as in
HDF5File
class. Cell ordering, numbers of dofs per each cell, global dofmap and values for degrees of freedom are stored.write_checkpoint
prepares XDMF XML document, adds mesh via already existingadd_mesh
and adds function via newly createdadd_function
. Theadd_function
follows the pattern in HDF5File::write(Function).read_checkpoint
parses XDMF XML document, reads data items and callsHDF5Utility::get_local_vector_values
. This method is common for both,XDMFFile
andHDF5File
and was separated out ofHDF5File
intoHDF5Utility
.Write method allows appending already existing XDMF file with another function and/or adding several time-steps for function.
Unit test to check functionality for several finite elements are added with test to check time-series.
Â
This PR appends new methods and should not break any existing functionality.
Â