Revision b2863342530d5e590a9a69dfd976f6c67f48dd9c authored by Thomas Saigre on 14 June 2023, 12:39:27 UTC, committed by Thomas Saigre on 14 June 2023, 12:48:16 UTC
1 parent b71939d
Raw File
petsc.sh
#!/bin/sh

module load cmake/2.8.7   
module load gcc/4.6.3  
module load openmpi/gcc/1.4.5  

export prefix=/softs/cemracs/petsc/3.3
export MPI=/softs/openmpi/gcc/1.4.5/

./configure --with-python --with-debugging=0 \
    --with-c-support=1 --with-c++-support=1  \
    --with-shared-libraries=1 --with-mpi=1 --PETSC_ARCH=linux \
    --prefix=${destroot}${prefix}/lib/petsc \
    --with-cc=${MPI}/bin/mpicc \
    --with-cxx=${MPI}/bin/mpic++ \
    --with-mpiexec=${MPI}/bin/mpiexec \
        --download-umfpack=1 \
        --download-ml \
        --download-metis \
        --download-parmetis \
        --download-blacs \
        --download-scalapack \
        --download-f-blas-lapack \
        --download-mumps \
        --download-pastix \
        --download-ptscotch \
    --with-fc=${MPI}/bin/mpif90 \
    --LIBS=-lstdc++

back to top