Installing dealii with METIS (for compiling a code gallery program)

33 views
Skip to first unread message

Sudip Kunda

unread,
Mar 5, 2025, 6:44:17 PM3/5/25
to deal.II User Group
Hello all,

The main issue I am trying to solve is the compilation of the program in the code gallery at this link :


The compilation is failing because dealii is unable to find METIS. I have an installation of dealii with mpi, p4est, petsc (with METIS), slepc and trilinos. I have tried two things :

1) Installing METIS separately and pointing dealii to the installation folder for METIS while configuring the dealii installation. This did not work because dealii was unable to find certain .so files that it requires.

2) Installing petsc with METIS so that dealii will pick up the METIS that petsc downloaded. I also tried to use the cmake configuration options to point dealii to the METIS installation that came with petsc, but I must have given the wrong path.
 
Is there a way to get dealii to recognise the fact that metis was already installed on the system when petsc was installed ? Are there any configuration options necessary while compiling METIS separately that make it easier to install with dealii ? Are there any other ways to provide a METIS installation to dealii ? I appreciate any help in this regard.

Thanking you,
Best Regards,
Sudip Kunda

Yann Jobic

unread,
Mar 6, 2025, 5:24:19 AM3/6/25
to dea...@googlegroups.com
Hello Sudip,

If i may answer, i'm compiling petsc apart of dealii, and when compiling
dealii, i'm using those kind of cmake options :
-DHDF5_DIR=$PETSC_DIR -DPETSC_DIR=$PETSC_DIR -DPETSC_ARCH=""
-DSLEPC_DIR=$PETSC_DIR -DP4EST_DIR=$PETSC_DIR -DDEAL_II_WITH_P4EST=ON
-DMETIS_DIR=$PETSC_DIR -DDEAL_II_WITH_METIS=ON -DDEAL_II_WITH_SLEPC=ON
-DDEAL_II_WITH_PETSC=ON

You have to put the right value in the environment variable PETSC_DIR.

Then, you have a summary.log file inside the building directory.
Personally i have :
[...]
# DEAL_II_WITH_HDF5 set up with external dependencies
# DEAL_II_WITH_METIS set up with external dependencies
# DEAL_II_WITH_MPI set up with external dependencies
# DEAL_II_WITH_P4EST set up with external dependencies
# DEAL_II_WITH_PETSC set up with external dependencies
[...]

Meaning that it has found the right libs. Moreover, i'm using a lot the
tests directory. You have some very small programs with one testing
purpose. I learned a lot there.

Hope this help,

Best regards,

Yann
> --
> The deal.II project is located at http://www.dealii.org/ <http://
> www.dealii.org/>
> For mailing list/forum options, see https://groups.google.com/d/forum/
> dealii?hl=en <https://groups.google.com/d/forum/dealii?hl=en>
> ---
> You received this message because you are subscribed to the Google
> Groups "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to dealii+un...@googlegroups.com
> <mailto:dealii+un...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> dealii/7ffe864f-824c-48d5-9189-d739d44daba9n%40googlegroups.com
> <https://groups.google.com/d/msgid/dealii/7ffe864f-824c-48d5-9189-
> d739d44daba9n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages