getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] compilation and computation issues


From: logari81
Subject: Re: [Getfem-users] compilation and computation issues
Date: Tue, 15 Feb 2011 22:52:30 +0100

On Tue, 2011-02-15 at 12:34 -0800, Martin Genet wrote:
> Dear GetFEM++ community,
> 
> I am a brand new GetFEM++ user, and not yet a full geek, so let me 
> excuse myself in advance for the trivial questions.
> 
> First of all, compilation issues.
> 
> When configuring with "--with-pic" (my system is Kubuntu x86_64), 
> everything seems to be fine. However, in "config.log" I see "checking 
> for library containing xmumps_c [...] result: no" for = {s, d, c, z}; 
> then I see "checking for xmumps_c in -lxmumps [...] result: no"; but 
> then I see "checking xmumps_c.h usability [...] result: yes", "checking 
> xmumps_c.h presence [...] result: yes" and "checking for xmumps_c.h 
> [...] result: yes", so I am wondering if MUMPS works or not.
> 
> When configuring with "--with-pic --enable-mumps", I received the 
> following error: "configure: error: The function smumps_c couldn't be 
> found in the provided MUMPS libraries.". I tried to use "--with-mumps" 
> and "--with-mumps-include-dir" but without success. MUMPS has been 
> installed through debian repositories, so I am wondering if I need to 
> compile it from sources.
> 
> When configuring with "--with-pic --enable-paralevel=2", I received the 
> following error: "configure: error: header file mpi.h not found.". Once 
> again, MPI has been installed through debian repositories, but maybe it 
> is not the correct way.
> 
> Now, computation issues.
> 
> Suppose the code has been configured with "--with-pic" and compiled. 
> Suppose I want to start from laplacian.cc and modify it to adapt it to 
> my problem. If I go to tests, I can run "make laplacian" and then 
> "./laplacian laplacian.param" and everything works perfectly. However, 
> when I move laplacian.cc and laplacian.param to my own directory, I do 
> not manage to compile neither to link the code properly. Is there a 
> simple way to do that?
> 
> Many thanks in advance for your precious help.
> Martin.
> 
> _______________________________________________
> Getfem-users mailing list
> address@hidden
> https://mail.gna.org/listinfo/getfem-users

Hi Martin,

first of all I would like to ask you what is the reason for compiling
getfem yourself instead of using the deb packages from debian repos? I
suppose you want to enable parallelization which is not included in the
deb packages, right?

The configure flags used for the creation of deb packages are the
following:

configure_flags= $(CROSS) --prefix=/usr \
                --enable-boost --enable-shared --with-pic \
                --enable-python --enable-muparser \
                --disable-matlab --disable-superlu \
                --with-mumps="-lsmumps_seq -ldmumps_seq -lcmumps_seq 
-lzmumps_seq
-lpord_seq"

This may help you.

Regarding the problem with mumps, I would like to ask you which version
of getfem are you trying to compile? After the last release I think I
have made changes in the configure script, removing some redundant mumps
checks. Could you try the latest version from the svn repository?

With respect to the compilation of your code, you need to specify the
compilation/linking flag -lgetfem and possibly something like
-I/.....include..getfem..headers..path

Regards

Kostas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]