>    I am trying to compile with the svn version of dealii but some errors
> occur related to MPI. I am using
> openmpi and petsc in Ubuntu karmic. The command I used to configure is
>
> CC=mpicc CXX=mpicxx F77=mpif77 F90=mpif90 ./configure
> --with-petsc=/usr/lib/petscdir/3.0.0 --with-petsc-arch=linux-gnu-c-opt
> --with-slepc=/usr/lib/slepcdir/3.0.0 --with-slepc-arch=linux-gnu-c-opt
> --with-metis-include=/usr/include/metis --with-metis-libs=/usr/lib
> --with-umfpack-include=/usr/include/suitesparse
> --with-umfpack-libs=/usr/lib
>
>   The error messages are
> =====lac==============optimized==MT== sparsity_pattern.cc
> =====lac==============optimized==MT== sparsity_tools.cc
> In file included from /usr/include/c++/4.4/utility:62,
>                  from
> /usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/mpicxx.h:37,
>                  from /usr/lib/openmpi/include/mpi.h:1870,
>                  from /usr/include/parmetis.h:17,
>                  from /usr/include/metis/metis.h:27,
>                  from source/sparsity_tools.cc:23:

This is sorta stupid -- Metis is a C library, but since their header file 
doesn't contain extern "C" {...} markers, we have to add those around the 
#include in sparsity_pattern.cc. We then consequently run into trouble if 
Metis.h includes a C++ header file as it appears to do on your system. 
There is no good solution to this apart from asking Karypis for a new 
Metis release -- the likelihood of which can be gauged from the fact that 
there hasn't been a release for more than 10 years now...

Anyway, I think I've fixed this in our current development sources. Can you 
try again with what I just checked in?

Best & thanks
 W.

-------------------------------------------------------------------------
Wolfgang Bangerth                email:            [email protected]
                                 www: http://www.math.tamu.edu/~bangerth/

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

Reply via email to