[petsc-users] use of undeclared identifier PetscViewerHDF5Open - in Petsc 3.12

Matthew Knepley knepley at gmail.com
Tue Aug 10 08:23:51 CDT 2021


On Tue, Aug 10, 2021 at 5:35 AM Armando Coco <armandococo28 at gmail.com>
wrote:

> Hello,
>
> I am trying to compile a petsc program that calls PetscViewerHDF5Open.
> I have added #include <petscviewerhdf5.h> in the header, but the
> compilation fails with error:
> use of undeclared identifier PetscViewerHDF5Open
>
> I have asked a colleague to run the same program in a newer version 3.14
> or 3.15 and everything seems to work properly. Does it mean that I have to
> update my petsc version necessarily?
>

I see the declaration there in version 3.12:

  https://gitlab.com/petsc/petsc/-/blob/v3.12/include/petscviewerhdf5.h#L43

Can you send the entire error output?

  Thanks,

     Matt


> Many Thanks
> Armando
>


-- 
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/20210810/67ef5450/attachment.html>


More information about the petsc-users mailing list