[petsc-users] Question about PetscViewerHDF5SetTimestep usage

Matthew Knepley knepley at gmail.com
Fri Dec 14 16:17:06 CST 2018


I think this was the last commit (5eab803f81ff61e3e81a6486d2410623a017e36d)
in the branch,
but just using the current master should work.

  Matt

On Fri, Dec 14, 2018 at 4:04 PM Sajid Ali <sajidsyed2021 at u.northwestern.edu>
wrote:

> Hi Matthew,
>
> Thanks for the info. Could you give a specific commit that I should
> rebuild PETSc with ? I’m currently building with commit=83593104eb216a023c00ab8a3f9897d55e531412'.
>
>
> On Fri, Dec 14, 2018 at 12:56 PM Matthew Knepley <knepley at gmail.com>
> wrote:
>
>> I believe this is now fixed in 'master', It was a bug in HDF5 attribute
>> creation.
>>
>>   Thanks,
>>
>>     Matt
>>
>> On Fri, Dec 14, 2018 at 1:16 PM Sajid Ali via petsc-users <
>> petsc-users at mcs.anl.gov> wrote:
>>
>>> Hi,
>>>
>>> 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
>>>
>>
>>
>> --
>> What most experimenters take for granted before they begin their
>> experiments is infinitely more interesting than any results to which their
>> experiments lead.
>> -- Norbert Wiener
>>
>> https://www.cse.buffalo.edu/~knepley/
>> <http://www.cse.buffalo.edu/~knepley/>
>>
>
>
> --
> Sajid Ali
> Applied Physics
> Northwestern University
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181214/1f7d19a1/attachment-0001.html>


More information about the petsc-users mailing list