|
Last change
on this file since 24427 was 24427, checked in by jdquinn, 6 years ago |
|
CHG: Using system copies of BLAS and LAPACK (works locally)
|
-
Property svn:executable
set to
*
|
|
File size:
934 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 | set -eu
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 | ## Constants
|
|---|
| 6 | #
|
|---|
| 7 | VER="3.7.6"
|
|---|
| 8 |
|
|---|
| 9 | # Download source
|
|---|
| 10 | $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
|
|---|
| 11 |
|
|---|
| 12 | # Unpack source
|
|---|
| 13 | tar -zxvf petsc-$VER.tar.gz
|
|---|
| 14 |
|
|---|
| 15 | # Cleanup
|
|---|
| 16 | rm -rf install src
|
|---|
| 17 | mkdir install src
|
|---|
| 18 |
|
|---|
| 19 | # Move source to 'src' directory
|
|---|
| 20 | mv petsc-$VER/* src/
|
|---|
| 21 | rm -rf petsc-$VER
|
|---|
| 22 |
|
|---|
| 23 | # Configure
|
|---|
| 24 | cd src
|
|---|
| 25 | ./config/configure.py \
|
|---|
| 26 | --prefix="${ISSM_DIR}/externalpackages/petsc/install" \
|
|---|
| 27 | --PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
|
|---|
| 28 | --with-mpi-dir="${ISSM_DIR}/externalpackages/mpich/install" \
|
|---|
| 29 | --with-debugging=0 \
|
|---|
| 30 | --with-valgrind=0 \
|
|---|
| 31 | --with-x=0 \
|
|---|
| 32 | --with-ssl=0 \
|
|---|
| 33 | --with-shared-libraries=1 \
|
|---|
| 34 | --download-metis=1 \
|
|---|
| 35 | --download-parmetis=1 \
|
|---|
| 36 | --download-scalapack=1 \
|
|---|
| 37 | --download-mumps=1
|
|---|
| 38 |
|
|---|
| 39 | # Compile and install
|
|---|
| 40 | if [ $# -eq 0 ]; then
|
|---|
| 41 | make
|
|---|
| 42 | make install
|
|---|
| 43 | else
|
|---|
| 44 | make -j $1
|
|---|
| 45 | make -j $1 install
|
|---|
| 46 | fi
|
|---|
| 47 |
|
|---|
| 48 | # Return to initial directory
|
|---|
| 49 | cd ..
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.