[petsc-users] HDF5 vec output with DMPlex
Adrian Croucher
a.croucher at auckland.ac.nz
Mon Oct 26 22:03:55 CDT 2015
hi
When I read the HDF5 file back in again using PetscViewerHDF5Open() and
VecLoad(), is there any easy way to navigate to the last time step in
the results?
Or, equivalently, to find how many timesteps there are in there, so I
could then use PetscViewerHDF5SetTimestep() before doing VecLoad() ?
Cheers, Adrian
On 17/10/15 03:01, Matthew Knepley wrote:
>
> Now I remember. I did not want the output to depend on the viewer.
>
> Does your example work if you replace PetscViewerHDF5SetTimestep()
> with DMSetOutputSequenceNumber()?
>
> Thanks,
>
> Matt
--
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
University of Auckland, New Zealand
email: a.croucher at auckland.ac.nz
tel: +64 (0)9 923 84611
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151027/010521f0/attachment.html>
More information about the petsc-users
mailing list