<div dir="ltr"><div dir="ltr">On Tue, Oct 19, 2021 at 6:12 AM Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Mon, Oct 18, 2021 at 10:35 PM Adrian Croucher <<a href="mailto:a.croucher@auckland.ac.nz" target="_blank">a.croucher@auckland.ac.nz</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Any response on this?<br>
<br>
This is a bit of a showstopper for me - I can't upgrade to PETSc 3.16 if <br>
it does not allow my users to read their HDF5 files created using <br>
earlier versions of PETSc.<br>
<br>
So far I can't see a workaround. Possibly the timestepping functions <br>
need some kind of optional parameter to specify what the default <br>
timestepping attribute should be, if it's not present in the file <br>
(rather than just assuming it's false)?<br></blockquote><div><br></div><div>I will fix it. I think I can do it tomorrow. Class just started this week do it is hectic :)</div><div><br></div><div>I think you are right. We should always write the attribute, but have it be false. We should</div><div>interpret a missing attribute as an old file.</div></div></div></blockquote><div><br></div><div>Okay, I think I have it. Can you look at this branch?</div><div><br></div><div> <a href="https://gitlab.com/petsc/petsc/-/merge_requests/4483">https://gitlab.com/petsc/petsc/-/merge_requests/4483</a></div><div><br></div><div>There is now an option that lets you set the default timestepping behavior</div><div><br></div><div> -viewer_hdf5_default_timestepping</div><div><br></div><div>I think that is what you want.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Regards, Adrian<br>
<br>
On 10/14/21 4:19 PM, Adrian Croucher wrote:<br>
> hi<br>
><br>
> I am just testing out PETSc 3.16 and making the necessary changes to <br>
> my code. Amongst other things I now have to add a <br>
> PetscViewerHDF5PushTimestepping() call before starting to output <br>
> time-dependent results to HDF5 using a PetscViewer.<br>
><br>
> I now also have to add this call before reading in sets of previously <br>
> computed time-dependent results (for restarting a simulation from the <br>
> results of a previous run).<br>
><br>
> The problem with this is that if I try to read in the results of any <br>
> previous run, computed with an earlier version of PETSc (< 3.16), an <br>
> error is raised because the time-dependent datasets in the file do not <br>
> have the 'timestepping' attribute.<br>
><br>
> Is there something else I need to do to make this work?<br>
><br>
> - Adrian<br>
><br>
-- <br>
Dr Adrian Croucher<br>
Senior Research Fellow<br>
Department of Engineering Science<br>
University of Auckland, New Zealand<br>
email: <a href="mailto:a.croucher@auckland.ac.nz" target="_blank">a.croucher@auckland.ac.nz</a><br>
tel: +64 (0)9 923 4611<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>