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

Barry Smith bsmith at petsc.dev
Tue Aug 10 13:40:45 CDT 2021


  Likely your install of PETSc was not configured for HDF5.  Use ./configure --download-hdf5 



> On Aug 10, 2021, at 8:23 AM, Matthew Knepley <knepley at gmail.com> wrote:
> 
> On Tue, Aug 10, 2021 at 5:35 AM Armando Coco <armandococo28 at gmail.com <mailto: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 <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/a764e0e9/attachment.html>


More information about the petsc-users mailing list