Skip to content

PETSc compilation with MUMPS support

Alberto F. Martin edited this page Sep 7, 2021 · 10 revisions

Compilation instructions

  1. Download the latest version of PETSc source codes here.

  2. Configure sources of PETSc and compile them. We used in particular the following set of commands. If we want to compile PETSc in release mode, then use --with-debugging=0.

    cd petsc-3.15.4
    export PETSC_DIR=`pwd`
    export PETSC_ARCH=x86_64       # or any other identifying text for your machine
    ./configure --with-cc=mpicc --with-cxx=mpicxx \
    --with-fc=mpif90 -with-blas-lapack-dir=$MKLROOT \
    --download-mumps --download-scalapack --download-parmetis --download-metis --download-ptscotch --with-debugging \
    --with-x=0 --with-shared=1 --with-mpi=1 --with-64-bit-indices  
    make                           #  compile PETSc

IMPORTANT NOTE: Grab the values of the PETSC_DIR and PETSC_ARCH variables. They will be required later on.

References

Clone this wiki locally