[dune-fem] Problems in including the UMFPACK library

Sacconi, Andrea a.sacconi11 at imperial.ac.uk
Wed Sep 26 13:53:00 CEST 2012


Hi Andreas,

"-lgfortran" appears neither in the Makefile of my module nor in the Makefile of the source folder, where my .cc file is located.
Instead, I can find it the DUNE-FEM Makefile, under FCLIBS.

What could I do?

Andrea

__________________________________________________________

Andrea Sacconi
PhD student, Applied Mathematics
AMMP Section, Department of Mathematics, Imperial College London,
London SW7 2AZ, UK
a.sacconi11 at imperial.ac.uk
________________________________
From: Dedner, Andreas [A.S.Dedner at warwick.ac.uk]
Sent: 26 September 2012 11:50
To: Sacconi, Andrea
Subject: RE: Problems in including the UMFPACK library

If you search your Makefile for lgfortran does anything turn up and what does it say?
Andreas
________________________________
From: Sacconi, Andrea [a.sacconi11 at imperial.ac.uk]
Sent: 26 September 2012 10:34
To: Dedner, Andreas
Cc: dune-fem at dune-project.org
Subject: RE: Problems in including the UMFPACK library

Hi all,

thanks for the suggestions. Now DUNE recognises the presence of UMFPACK.

I have just an additional question, since it seems in the linking phase there's a library missing.
Precisely, while building my own module, I get this error:

/usr/local/lib/libumfpack.a(umfpack_gn_tictoc.o): In function `umfpack_tic':
umfpack_tictoc.c:(.text+0x5): undefined reference to `SuiteSparse_time'
/usr/local/lib/libumfpack.a(umfpack_gn_tictoc.o): In function `umfpack_toc':
umfpack_tictoc.c:(.text+0x25): undefined reference to `SuiteSparse_time'
/usr/local/lib/libblas.a(xerbla.o): In function `xerbla_':
xerbla.f:(.text+0x49): undefined reference to `_gfortran_st_write'
xerbla.f:(.text+0x54): undefined reference to `_gfortran_string_len_trim'
xerbla.f:(.text+0x66): undefined reference to `_gfortran_transfer_character_write'
xerbla.f:(.text+0x76): undefined reference to `_gfortran_transfer_integer_write'
xerbla.f:(.text+0x7e): undefined reference to `_gfortran_st_write_done'
xerbla.f:(.text+0x87): undefined reference to `_gfortran_stop_string'
collect2: ld returned 1 exit status

Googling on other forums, I discovered that it's probably due to the missing inclusion "-lgfortran".
So, following Martin's previous tip, I noticed that in ./configure --help of dune-fem there is the possibility of putting:

LIBS=-lgfortran

I put this additional flag in the config.opts I'm using to build my own module ... but it didn't work. Is my command correct? If it's not, where do I have to insert it?

Thanks for your help!

Andrea

__________________________________________________________

Andrea Sacconi
PhD student, Applied Mathematics
AMMP Section, Department of Mathematics, Imperial College London,
London SW7 2AZ, UK
a.sacconi11 at imperial.ac.uk
________________________________
From: Dedner, Andreas [A.S.Dedner at warwick.ac.uk]
Sent: 17 September 2012 16:57
To: Sacconi, Andrea
Subject: RE: Problems in including the UMFPACK library

Hi Andrea.

tyy somelike like

  --with-umfpack-includedir=$MODPATH/umfpack/include \
  --with-umfpack-libdir=$MODPATH/umfpack/lib \

in the config.opts file and if you still have problems, include the config.log file found
in the dune-fem directory.

Andreas

________________________________
From: dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org [dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org] on behalf of Sacconi, Andrea [a.sacconi11 at imperial.ac.uk]
Sent: 12 September 2012 15:26
To: dune at dune-project.org
Subject: [Dune] Problems in including the UMFPACK library

Hi everyone,

I have a small problem with UMFPACK.
I'd like to use it to make a comparison with a CG approach, in the specific problem I'm solving.

When I build my own module,  the list of components found is the following :

dune-common.............: version 2.2.0
dune-fem................: version 1.3.0
dune-geometry...........: version 2.2.0
dune-grid...............: version 2.2.0
dune-istl...............: version 2.2.0
dune-localfunctions.....: version 2.2.0
ALBERTA.................: version 3.0
ALUGrid.................: version 1.50 (parallel)
.
.
.
UMFPACK.................: no
psurface................: yes

while instead UMFPACK is correctly installed; there is /usr/local/include/umfpack.h and the other libraries.
I tried to modify the Makefile.am, but it didn't work.

Any ideas about how making DUNE recognise the presence of UMFPACK?

Many thanks,

Andrea
__________________________________________________________

Andrea Sacconi
PhD student, Applied Mathematics
AMMP Section, Department of Mathematics, Imperial College London,
London SW7 2AZ, UK
a.sacconi11 at imperial.ac.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-fem/attachments/20120926/834d5c70/attachment.htm>


More information about the dune-fem mailing list