Updates for PETSc 3.5 release.
Fix output of HDF5 using global dof indexing
Fix HDF5 Function read too
Make assertion work as intended
Merge branch 'chris/fix-issue-346' into next
Merge branch 'jan/fix-petsc-3.5' into next