<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">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">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_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>