[petsc-users] Error linking with HYPRE

Matthew Knepley knepley at gmail.com
Thu Oct 21 10:49:57 CDT 2010


Is your PETSc configured to use Hypre? If so, send the entire failing link
line and configure.log.

   Matt

On Thu, Oct 21, 2010 at 10:46 AM, Wee-Beng Tay <zonexo at gmail.com> wrote:

> Hi,
>
> I am trying to compile and build my code. Initially it's simply a fortran
> PETSc code and I managed to build the code.
>
> However, when I try to compile another similar code which has HYPRE 2.6b,
> it has problems linking:
>
> global.o: In function `global_data_mp_de_ini_var_':
> global.F90:(.text+0xaaf5): undefined reference to
> `hypre_structgriddestroy_'
> global.F90:(.text+0xab06): undefined reference to
> `hypre_structstencildestroy_'
> global.F90:(.text+0xab17): undefined reference to
> `hypre_structmatrixdestroy_'
> global.F90:(.text+0xab28): undefined reference to
> `hypre_structvectordestroy_'
> global.F90:(.text+0xab39): undefined reference to
> `hypre_structvectordestroy_'
> global.F90:(.text+0xab55): undefined reference to `hypre_structsmgdestroy_'
> global.F90:(.text+0xab6d): undefined reference to
> `hypre_structpfmgdestroy_'
> global.F90:(.text+0xab8e): undefined reference to
> `hypre_structhybriddestroy_'
> global.F90:(.text+0xaba6): undefined reference to
> `hypre_structbicgstabdestroy_'
> global.F90:(.text+0xabb9): undefined reference to
> `hypre_structgmresdestroy_'
> hypre.o: In function `hypre_mp_hypre_solver_':
> hypre.F90:(.text+0xb5): undefined reference to `hypre_structgridcreate_'
> hypre.F90:(.text+0x10f): undefined reference to
> `hypre_structgridsetextents_'
> hypre.F90:(.text+0x120): undefined reference to `hypre_structgridassemble_'
> hypre.F90:(.text+0x13b): undefined reference to
> `hypre_structstencilcreate_'
> hypre.F90:(.text+0x1c3): undefined reference to
> `hypre_structstencilsetelement_'
> hypre.F90:(.text+0x20e): undefined reference to `hypre_structmatrixcreate_'
> hypre.F90:(.text+0x224): undefined reference to
> `hypre_structmatrixsetsymmetric_'
>  ...
>
> I have attached my global.F90,  and also my makefile. Hope someone can
> help. I think if I can solve the global.F90 problem, the other hypre.F90 can
> be solved as well.
>
> Thank you.
>
> --
> ================================================
> Wee-Beng TAY
> Postdoctoral Fellow
> Aerodynamics Group
> Aerospace Engineering
> Delft University of Technology
> Kluyverweg 2
> 2629 HT Delft
> The Netherlands
> Temporary E-mail: zonexo at gmail.com
> ================================================
>
>


-- 
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/20101021/a40b420f/attachment.htm>


More information about the petsc-users mailing list