Nasser,

these are the steps that I took on my system:

1. download metis 4.0
2. unpack it under /usr/local/metis/ (at your wish)
3. modified Makefile.in (I added the -m64 flag, and -fPIC flag, selected mpicc, and LDFLAGS -m64 for 64bits mac).

...
# Which compiler to use
CC = mpicc

# What optimization level to use
OPTFLAGS = -O2 -m64 -fPIC

# What options to be used by the loader
LDOPTIONS = -m64
...

4. make

5. export METIS_DIR=/usr/local/metis

5. Now go to deal.II dir and do the configure step.

6. At compile time, you'll get errors such as "symbol log2 already defined" (or similar). For each such error, go to the metis include file, and comment it out. Note that this is AFTER having compiled the original METIS.

The above steps are the ones that i followed literally, and they worked for me. I actually get more errors than the ones reported in the deal documentation, but the reason is always the same.


I hope this will help a little more.

Luca.

--
Luca Heltai <[email protected]>
http://people.sissa.it/~heltai/
Scuola Internazionale Superiore di Studi Avanzati
Phone:  +39 040 3787 449, Office: 255
--
There are no answers, only cross references.






On 29/ott/2009, at 17.33, Nasser Mohieddin Abukhdeir wrote:

The issue in that case is that I cannot compile Metis without an additional step compared to your instructions, I remove the declarations in proto.h but also have to remove the implementation of log2() from util.c. Without doing both of these things Metis will not *compile* on my system (the newest release of Ubuntu 9.10, which literally was just released). Only after doing these two modification to the Metis source will it compile, but then I get the linking error for __log2 when I try to link example 17.

Nasser

_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to