Enabling mpi.h library?

Discussion about building and installing Elmer
Post Reply
ablackone
Posts: 18
Joined: 12 Jan 2010, 14:10

Enabling mpi.h library?

Post by ablackone »

Hello,

I just upgraded to the new Ubuntu version 10.04 and am trying to compile Elmer 5.4.1 (obtained through svn). In the previous Ubuntu version I never had a problem compiling in the same way I am doing now, but now I am getting these errors when compiling the 'fem' module:

In file included from /usr/include/_hypre_utilities.h:13,
from SolveHypre.c:25:
/usr/include/HYPRE_utilities.h:26:17: error: mpi.h: No such file or directory
In file included from SolveHypre.c:25:
/usr/include/_hypre_utilities.h:830: error: expected declaration specifiers or ‘...’ before ‘MPI_Comm’
/usr/include/_hypre_utilities.h:849: error: expected declaration specifiers or ‘...’ before ‘MPI_Comm’

These errors continue for various HYPRE*.h files.

Scrolling farther up in the output I see that the MPI library is disabled.
Libs:
BLAS -lblas
LAPACK -llapack
HYPRE -lHYPRE_Euclid -lHYPRE_parcsr_ls -lHYPRE_ParaSails -lHYPRE_IJ_mv
UMFPACK -lumfpack -lamd
ARPACK -larpack
PARPACK -lparpack
HUTI -lhuti
EIO -leiof
MPI

MPI:
disabled

Could this be what is causing the problems? How do I enable the MPI library? I've looked through old posts, have downloaded mpi and mpich2, but am still unable to compile. Any ideas?
hazelsct
Posts: 153
Joined: 05 Oct 2009, 17:02
Location: Boston, MA, USA
Contact:

Re: Enabling mpi.h library?

Post by hazelsct »

Hi, is there a reason you need the old 5.4.1 version? Ubuntu 10.04 should come with a newer version of elmer as binary packages, with MPI enabled, and you can get an even newer one at www.opennovation.org/ubuntu .

-Adam
pilafa
Posts: 56
Joined: 17 Apr 2012, 00:33
Antispam: Yes
Location: Barcelona

Re: Enabling mpi.h library?

Post by pilafa »

Same problem has hazelsct here! :roll:
Someone can help???
Thanks!
Pierre
Post Reply