On Fri, Feb 15, 2013 at 4:20 PM, Barry Smith <bsmith@mcs.anl.gov> wrote:

  BTW petscviewer.h included by petscsys.h always includes hdf5.h (when PETSc installed with hdf5) because of hsize_t and hid_t are in the public API of PETSc viewer for hdf5.

   We can either have separate petscviewerhdf5.h or we could include just H5public.h and H5Ipublic.h in petscviewer.h to get these beasties defined.

   I vote for the first but am fine with the second.

I also prefer the first. Very few users of PetscViewer need or want to know anything about HDF5.