[dune-fem] Error linking UMFPACK

Claus-Justus Heine Claus-Justus.Heine at IANS.Uni-Stuttgart.DE
Tue Jun 10 20:54:51 CEST 2014


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

Am 10.06.14 19:29, schrieb Andreas Dedner:
> I think most dune-fem user just go with the ALL_PKG_* flags as for
> example also done in the howto. I hope that works, best Andreas
> 
> @Claus: I don't quite see what the difference between your 
> ALL_DUNE_FEM_FLAGS  and ALL_PKG_FLAGS would be. Basically if my
> modules depends on

Basically, that was not a suggestion to change stuff and no criticism
towards the build system. If my writing could be understood in this
way, then I apologize.

I suppose that the principal difficulty for newcomers is, that the
ALL_PKG_FLAGS are not auto-"magically" added at some point (e.g. by
the duneproject script). So one has to know that they are there. I
remember also that I had a similar problem at one point and was first
looking at missing paths in the respective DUNE_[modname]_XXXFLAGS
variables until I realized that these were not the variables to look
at. I do not even remember if this was dune-fem or something else.
Nothing is wrong with with the way things are done now.

> dune-fem and lets say some dune-foo then I could have flags 
> ALL_DUNE_FEM_FLAGS and ALL_DUNE_FOO_FLAGS which I would have to add
> but together they would be identical to the ALL_PKG_FLAGS. Or am I
> missing something in your suggestion?
> 
> Basically I guess the dune idea is to have the option to really
> pick and choose - so my dune-fem was configured with petsc and 
> umfpack and I need that for some of my projects but some other
> module I'm working on is an explicit fv needing neither so I don't
> add their flags. Alternatively if I'm lazy I use ALL_PKG...

Exactly. And if you subtract the misleading paragraph about compound
package-CPPFLAGS, that was more or less what my previous post stated.

Cheers,

Claus

> 
> 
> On 10/06/14 17: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
> 
> 
> 
> _______________________________________________ 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 v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJTl1R7AAoJEAbZWiFWzP01iPoQAOljkcD1bXofM1GgM5bgvka2
490YhyjwbJsYgNkJC5kmvAqQEP1eJouwUrDELBQ9yGSIZlXdOjQUPkJnT5EWWiaU
lNK1J8Rl7CK57U4lmt2oAsAkCbC0ElOP4UnQIYj4ucwWIB9ICkBbx/lWwQ82YmNx
grzpeN2cNC8dCkdbXLJKrDjqrmUcpv2lkoiSw8Bg8AseBD7sdxX9AqV3sVeajrI8
1cfMavh94IsEc37VsTtDc621EUnZ+cBcn04L/ceAThZFI5TFmVLIq/GwlA6aumsu
cfDIv0uiH2rHMQW6EyRyoUt+MnDg8L11zfNFml0xeFPFncbycNQ8KKErd7HJcNaH
wTy9L2gyIP7PhSRE1eJThCDJMgBKxRHE8MWz2I7xHiYF9lO+qQWURzPXMnmZ8Y23
3pk54XNfma9Xv9k6HfEoX13rxbPGzZkcKugH+Ga3cd6hW2OE7oJTplCiPldGysf1
aRv8051Rxt8E0uAE4gHg2uz1KU6ia5k0p4QcrH4CKWoSSpg5/Ifp38KY5gKK9PiE
GZ0czUQLdTx9SiEXvz4COfcI3uV+dn879kjF1satiRCpNntnewTUZeDKWkEb6E2Q
JWkvdhLNlYEaXrT6zo06jQZMKlT2RxgUt9BEaF+VNGOBHlYcHMYmVWcbergBcVOl
2pYXtlaNFQ14NGOe4Xs1
=9HM4
-----END PGP SIGNATURE-----




More information about the dune-fem mailing list