Hello Toby:
    I definitely had the steps in the right order and I narrowed down the problem last night. I was attempting this installation on the newest Ubuntu release and the method specified resulted in the problems I documented earlier. Last night I tried the same procedure on my home machine (Ubuntu 8.04) and it worked out perfectly. Although, example 18 does give an error in the partitioning code (which I will document later).
    I believe that there is either a problem with compiling Metis (as-is) on Ubuntu 8.10, a problem with Ubuntu 8.10's math libraries, or most likely, a problem with the upgrade process to 8.10 (as opposed to a fresh install). I will try a fresh install on my laptop in a week (I have to travel) and provide an update as to what the issue is.
    Thanks to everyone for helping me so much with these issues, I will provide an installation summary for deal.II with PETSc/Metis to add to the website once I figure out what the problem is with Ubuntu 8.10.

Nasser Mohieddin Abukhdeir
Postdoctoral Fellow (Vlachos Group)
University of Delaware - Department of Chemical Engineering

Toby D. Young wrote:
Nasser,

  
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.
    

I am sure you have the steps in the wrong order; as Wolfgang pointed out.
Let's take one step back, to take two steps forward. Maybe try this:

(1) Download metis 4.0.

(2) Compile metis. *as it is*. Change nothing.

(3) Download and compile PETSc. Make sure you specify the compilers
correctly and --with-language=C++. Choose PETSc-3.0.0-p8 to be safe.

(4) Now, you can safely comment out the lines:
void drand48()
double srand48(long)
int log2(int)
in the Metis file Lib/proto.h

(5) Configure and compile your dealii. Make sure all of your compilers
match to (1) and (3).

Take a look here:
http://www-dimat.unipv.it/heltai/wikideal/index.php/Deal.II_Questions_and_Answers#Is_there_a_sure-fire_way_to_compile_dealii_with_PETSc.3F

(I will update that page when I have time, which should be soon).

This really should work for you. If not, let me know, I have also an
Ubuntu 8 machine I can try to verify this on.

Best,
	Toby

-----

Toby D. Young
Assistant Professor
Philosophy-Physics
Polish Academy of Sciences
Warszawa, Polska

www:   http://www.ippt.gov.pl/~tyoung
skype: stenografia

On Thu, 29 Oct 2009, Nasser Mohieddin Abukhdeir wrote:

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

Reply via email to