[petsc-users] Question about PetscViewerHDF5SetTimestep usage

Sajid Ali sajidsyed2021 at u.northwestern.edu
Fri Dec 14 12:15:06 CST 2018


I have a question about PetscViewerHDF5SetTimestep usage.

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.

Example : https://pastebin.com/cAeZsUgA

Error :

writing vector in hdf5 to vector.dat ...
HDF5-DIAG: Error detected in HDF5 (1.10.4) MPI-process 0:
  #000: H5A.c line 279 in H5Acreate2(): unable to create attribute
    major: Attribute
    minor: Unable to initialize object
  #001: H5Aint.c line 323 in H5A__create(): unable to create attribute
    major: Attribute
    minor: Unable to create file
  #002: H5Aint.c line 167 in H5A__create_common(): attribute already exists
    major: Attribute
    minor: Object already exists
[0]PETSC ERROR: --------------------- Error Message
[0]PETSC ERROR: Error in external library
[0]PETSC ERROR: Error in HDF5 call H5Acreate2() Status -1
[0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for
trouble shooting.
[0]PETSC ERROR: Petsc Release Version 3.10.2, unknown

The error is related to the second VecView after setting the timestep to 1.
Am i doing something wrong ?

Thank You,
Sajid Ali
Applied Physics
Northwestern University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181214/3f8a5d5a/attachment.html>

More information about the petsc-users mailing list