<div dir="ltr">I believe this is now fixed in 'master', It was a bug in HDF5 attribute creation.<div><br></div><div>  Thanks,</div><div><br></div><div>    Matt</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Dec 14, 2018 at 1:16 PM Sajid Ali via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></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 dir="ltr"><div dir="ltr"><div><div><div>Hi, <br><br></div>I have a question about PetscViewerHDF5SetTimestep usage. <br></div><br></div><div>I have tried the following minimal example which tries to write a vector twice to an hdf5 file and it fails with the error message shown below. <br></div><div><br></div><div>Example : <a href="https://pastebin.com/cAeZsUgA" target="_blank">https://pastebin.com/cAeZsUgA</a></div><div><br></div><div>Error :<br><br>writing vector in hdf5 to vector.dat ...<br>HDF5-DIAG: Error detected in HDF5 (1.10.4) MPI-process 0:<br>  #000: H5A.c line 279 in H5Acreate2(): unable to create attribute<br>    major: Attribute<br>    minor: Unable to initialize object<br>  #001: H5Aint.c line 323 in H5A__create(): unable to create attribute<br>    major: Attribute<br>    minor: Unable to create file<br>  #002: H5Aint.c line 167 in H5A__create_common(): attribute already exists<br>    major: Attribute<br>    minor: Object already exists<br>[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br>[0]PETSC ERROR: Error in external library<br>[0]PETSC ERROR: Error in HDF5 call H5Acreate2() Status -1<br>[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" target="_blank">http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.<br>[0]PETSC ERROR: Petsc Release Version 3.10.2, unknown <br><br></div><br></div><div>The error is related to the second VecView after setting the timestep to 1. Am i doing something wrong ? <br clear="all"></div><div dir="ltr"><div><div><div><div><div><br></div><div>Thank You, <br></div><div><div dir="ltr" class="gmail-m_8486086263868930825gmail_signature"><div dir="ltr"><div style="font-size:12.8px">Sajid Ali<br></div><div style="font-size:12.8px">Applied Physics<br></div><div style="font-size:12.8px">Northwestern University</div></div></div></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>