[dune-fem] Error linking UMFPACK

Claus-Justus Heine Claus-Justus.Heine at ians.uni-stuttgart.de
Tue Jun 10 19:24:39 CEST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

on my machine I find (master branches) UMFPACK (after "configure
- --with-umfpack") in the UMFPACK_{CPPFLAGS,LDFLAGS,LIBS} and all packages
found I get with ALL_PKG_<BLAHBLAH>. In an example dune-project for a
poisson equation I use the following:

AM_CPPFLAGS = $(ALL_PKG_CPPFLAGS) $(DUNEMPICPPFLAGS) <etc>
LDADD=$(ALL_PKG_LDFLAGS) $(ALL_PKG_LIBS) $(DUNEMPILIBS)
AM_LDFLAGS= $(ALL_PKG_LDFLAGS) $(DUNEMPILDFLAGS)

I do not know whether this is the intended way, but at least this seems
to work. As far as I can see also the other dune-modules do not seem to
add flags for "external" modules to their respective flag-variables. So
it does not seem to be the habit for dune-module-libraries to define, e.g.

DUNE_FEM_CPPFLAGS="[other dune-fem-stuff] ${UMFPACK_CPPFLAGS}"

or the like. So some kind of manual tuning of the Makefile.am seems to
be necessary, but of course you have access to the paths and flags which
according to the dune build-system are necessary to use umfpack (if you
do not like the ALL_PKG stuff, just adding UMFPACK_<xyz> to the
respective automake-variable should also work).

BTW, I just (out of curiousity) ran the dune-common/bin/duneproject
script in order to look at the flags which are added there in the
example Makefile.am. Also there dependent module flags and paths are not
added automatically to src/Makefile.am (only the dune-grid definitions
are there).

Cheers,

Claus


On 10.06.2014 18:32, Agnese, Marco wrote:
> Hello DUNEers,
> I have a problem with UMFPACK. 
> I created a project (DUNE 2.3.0 and DUNE FEM 1.4) linking UMFPACK and it is correctly recognized:
> ------------------------------------------------------------------------------
> -                                  SUMMARY                                   -
> ------------------------------------------------------------------------------
> 
> dune-common.............: version 2.3.0 (/usr/local_machine/dune-2.3.0/dune-common-2.3.0)
> dune-dynamic-grid.......: version 1.0 (/home/ma/m/ma2413/dune-repo/dune-dynamic-grid)
> dune-fem................: version 1.4.0 (/usr/local_machine/dune-2.3.0/dune-fem-1.4.0)
> dune-geometry...........: version 2.3.0 (/usr/local_machine/dune-2.3.0/dune-geometry-2.3.0)
> dune-grid...............: version 2.3.0 (/usr/local_machine/dune-2.3.0/dune-grid-2.3.0)
> dune-istl...............: version 2.3.0 (/usr/local_machine/dune-2.3.0/dune-istl-2.3.0)
> dune-localfunctions.....: version 2.3.0 (/usr/local_machine/dune-2.3.0/dune-localfunctions-2.3.0)
> dune-spgrid.............: version 2014.04 (/usr/local_machine/dune-2.3.0/dune-spgrid-2014.04)
> 
> ALBERTA.................: version 3.0 (/usr/local_machine/alberta-3.0.0 ; world dims 1 2 3)
> ALUGrid.................: version 1.52 (parallel) (/usr/local_machine/alugrid-1.52)
> AmiraMesh...............: no
> BLAS....................: yes
> GMP.....................: yes
> Grape...................: no
> METIS...................: yes
> METIS...................: yes
> MPI.....................: yes (OpenMPI)
> OpenGL..................: yes (add GL_LIBS to LDADD manually, etc.)
> PETSc...................: no
> ParMETIS................: yes
> SIONLIB.................: no
> SuperLU-DIST............: no
> SuperLU.................: no
> UG......................: no
> UMFPACK.................: yes
> psurface................: no
> 
> but when I compile my code HAVE_UMFPACK is 0 and ENABLE_UMFPACK is 0 and when I call the solveUMF it does nothing. 
> If I set HAVE_UMFPACK = 1 and ENABLE_UMFPACK = 1 it doesn't compile because it doesn't find the UMFPACK header.
> 
> I fixed it linking UMFPACK manually in the Makefile.am and it works but I would like to avoid it. 
> 
> What am I doing wrong?
> 
> Thank you,
> cheers,
> Marco. 
> 
> 
> 
> _______________________________________________
> dune-fem mailing list
> dune-fem at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-fem
> 


- -- 
Dr. Claus-Justus Heine
Institut für Angewandte Analysis und Simulation
* Numerische Mathematik für Höchstleistungsrechner
Universität Stuttgart

Fon: +49 (0) 711 - 685 65558
Fax: +49 (0) 711 - 685 65507
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJTlz9XAAoJEAbZWiFWzP01jYwP/AtXTfT9xx8SaZvTZHTBb3lY
VSRd+d+2fA7RdoOmwr5eB84vfwU552E9G7/7YP/0FdiQ81kXQsQzSOzFiujflBS0
CveahSRwAZ1Gclj/41DtjDdQYL6tU3nLelz2jAxwb4VfG4EDDaQa5FzPrwvK+nbY
TDA+GJ2ZjPoUpplJ4FMV4R9wik1zBnqoIZn8NjV1+88yd5qRnZX/uRvzNYZqSYLQ
1xWL3fd096BaOUKk0f9jLI4beeLzZ3gHSlXHAecdVMb+5Ny/D/bd510gKqkFX4i1
v+fQgjg3wdx0e0ZFMXYnyl5olbxipbn7/iQ3H4QrhspEbWbbPw9iSPKWVKUy2C1k
KgTRvRnVurFL8xTKvvvkQQ0jD6BNxGYQVoLPKHTw6wbZsImZng3FkiNETIDYmIq9
i83CYYkWPOQwKOCRXl2iDaU5j0DYBxCoWadSdc7w0ocRiiPXPqEv6UKSn35QOJgZ
7ANX9gMoQU6DFOLresV2otmVxG43NB+m5oD59jda3DQrpNb3f3d5aHSF/4+gx+SP
s+SolNCkAu/5tVy6navwuYAz5EITFr96FdJhgeWyOvi2mj9rOiOJc8Jt0pDCBX/e
BKpP+LRhKbv8TEShKh+InOGFD4oXHb+P9JhDBneadMO1UObCNcCfUErGaROj9Kic
fZ98GsWYivCTFSre2gaU
=Nb8x
-----END PGP SIGNATURE-----




More information about the dune-fem mailing list