You do need HDF5 to store "heavy" data, but XDMF can also store data in the XML 
file as "light" data for small datasets. 

Inclusion in PETSc could go two ways -- the first would be using the XDMF 
library which handles reading/writing both light and heavy data. Or, the XDMF 
viewer can be built on top of the HDF5 viewer already there. In that case, the 
heavy data will be written using the HDF5 viewer and then there would be code 
to write the XML data in the XDMF format. This is the approach we use in our 
code -- we write the HDF5 files using the HDF5 API, then write with standard IO 
the XML file. 

Still pulling the pylith code to see what they do. 

Tim 

----- Original Message -----

From: "Jed Brown" <[email protected]> 
To: "For users of the development version of PETSc" <petsc-dev at mcs.anl.gov> 
Cc: gtg085x at mail.gatech.edu 
Sent: Saturday, December 3, 2011 3:00:32 PM 
Subject: Re: [petsc-dev] XDMF viewers 


On Sat, Dec 3, 2011 at 13:41, Matthew Knepley < knepley at gmail.com > wrote: 



There is a working XDMF viewer in http://geodynamics.org/cig/software/pylith 
but I have not moved it over 
yet. Jed maintains that the appended binary is better. 



I don't have a problem with XDMF, but you need HDF5 to use it. Appended binary 
has many stupid limitations, not least of which is that you can't write 
anything into the file until you have everything that you will write into the 
file (or pick some arbitrary maximum size for the header). At least HDF5 
manages that for you. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111203/2d6288af/attachment.html>

Reply via email to