<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
hi<br>
<br>
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?<br>
<br>
Or, equivalently, to find how many timesteps there are in there, so
I could then use PetscViewerHDF5SetTimestep() before doing VecLoad()
?<br>
<br>
Cheers, Adrian<br>
<br>
<div class="moz-cite-prefix">On 17/10/15 03:01, Matthew Knepley
wrote:<br>
</div>
<blockquote
cite="mid:CAMYG4G=o0oOahT1bZpO6UbcMrJuWrrm6c9F31trvkASjP_5+Tg@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote"><br>
<div>Now I remember. I did not want the output to depend on
the viewer.</div>
<div><br>
</div>
<div>Does your example work if you replace
PetscViewerHDF5SetTimestep() with
DMSetOutputSequenceNumber()?</div>
<div><br>
</div>
<div> Thanks,</div>
<div><br>
</div>
<div> Matt</div>
<div> </div>
</div>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
University of Auckland, New Zealand
email: <a class="moz-txt-link-abbreviated" href="mailto:a.croucher@auckland.ac.nz">a.croucher@auckland.ac.nz</a>
tel: +64 (0)9 923 84611
</pre>
</body>
</html>