<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div> Likely your install of PETSc was not configured for HDF5. Use ./configure --download-hdf5 <div class=""><br class=""></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 10, 2021, at 8:23 AM, Matthew Knepley <<a href="mailto:knepley@gmail.com" class="">knepley@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">On Tue, Aug 10, 2021 at 5:35 AM Armando Coco <<a href="mailto:armandococo28@gmail.com" class="">armandococo28@gmail.com</a>> wrote:<br class=""></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">Hello,<div class=""><br class=""></div><div class="">I am trying to compile a petsc program that calls PetscViewerHDF5Open. </div><div class="">I have added #include <petscviewerhdf5.h> in the header, but the compilation fails with error:</div><div class="">use of undeclared identifier PetscViewerHDF5Open<br class=""></div><div class=""><br class=""></div><div class="">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?</div></div></blockquote><div class=""><br class=""></div><div class="">I see the declaration there in version 3.12:</div><div class=""><br class=""></div><div class=""> <a href="https://gitlab.com/petsc/petsc/-/blob/v3.12/include/petscviewerhdf5.h#L43" class="">https://gitlab.com/petsc/petsc/-/blob/v3.12/include/petscviewerhdf5.h#L43</a></div><div class=""><br class=""></div><div class="">Can you send the entire error output?</div><div class=""><br class=""></div><div class=""> Thanks,</div><div class=""><br class=""></div><div class=""> Matt</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div class="">Many Thanks</div><div class="">Armando</div></div>
</blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br class="">-- Norbert Wiener</div><div class=""><br class=""></div><div class=""><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" class="">https://www.cse.buffalo.edu/~knepley/</a><br class=""></div></div></div></div></div></div></div></div>
</div></blockquote></div><br class=""></div></body></html>