<div class="gmail_quote">On Sun, Sep 25, 2011 at 16:24, khalid ashraf <span dir="ltr">&lt;<a href="mailto:khalid_eee@yahoo.com">khalid_eee@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><span>on the NERSC computers, the installed petsc version of 3.1 is giving the error</span></div><div><span>&#39;undefined reference to `PetscViewerHDF5Open&#39; </span></div><div>I included petscsys.h </div><div>I also tried to run the two example programs </div>
<div><a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-3.1/src/dm/da/examples/tutorials/ex10.c.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-3.1/src/dm/da/examples/tutorials/ex10.c.html</a> and ex9.c<br>
</div><div><br></div><div>illustrating the HDF5 output. They also give the same error.</div></blockquote></div><br><div>Did you configure --with-hdf5?</div>