[petsc-users] petscviewerhdf5open undefined reference
Matthew Knepley
knepley at gmail.com
Tue Jul 19 09:37:11 CDT 2016
On Tue, Jul 19, 2016 at 1:51 PM, JC <loiseau.jc at gmail.com> wrote:
> Hi everyone,
>
> I am a rather recent user of petsc. I have installed it on my mac using
> home-brew and have been to develop my CFD code quite efficiently thanks to
> that. I am now porting the code onto another machine which has linux mint
> 18 installed. I have installed petsc and its dependancies as follow:
>
> apt install --install-recommends --install-suggests pets-dev
>
> Though most of the code compiles correctly, I get the following error at
> some point:
>
> /home/jean-christophe/Codes/PETSc_LS/SOURCES/io.f90:162: undefined
> reference to `petscviewerhdf5open_’
>
> I have made sure that apt install the hdf5 library. All of the versions
> are exactly the same I use on my mac, yet I cannot compile correctly.
> Anyone has ever encountered the same problem?
>
Its possible that the packager did not configure PETSc to use HDF5. Check
$PETSC_DIR/include/petscconf.h
for the lines
#ifndef PETSC_HAVE_HDF5
#define PETSC_HAVE_HDF5 1
#endif
If they are not there, you will have to install yourself using
--download-hdf5, which should not be hard.
Thanks,
Matt
> Thanks a lot anyway for this amazing library.
> Regards,
> JC
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160719/642b2181/attachment.html>
More information about the petsc-users
mailing list