source: issm/trunk-jpl/externalpackages/petsc/install-3.14-mac.sh@ 25710

Last change on this file since 25710 was 25710, checked in by jdquinn, 4 years ago

CHG: Now using PETSc defined macros for fencing

  • Property svn:executable set to *
File size: 921 bytes
Line 
1#!/bin/bash
2set -eu
3
4
5## Constants
6VER="3.14.0"
7
8# Download source
9$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
10
11# Unpack source
12tar -zxvf petsc-${VER}.tar.gz
13
14# Cleanup
15rm -rf install src
16mkdir install src
17
18# Move source to 'src' directory
19mv petsc-${VER}/* src/
20rm -rf petsc-${VER}
21
22# Configure
23cd src
24./config/configure.py \
25 --prefix="${ISSM_DIR}/externalpackages/petsc/install" \
26 --PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
27 --with-debugging=0 \
28 --with-valgrind=0 \
29 --with-x=0 \
30 --with-ssl=0 \
31 --with-pic=1 \
32 --download-fblaslapack=1 \
33 --download-mpich=1 \
34 --download-metis=1 \
35 --download-parmetis=1 \
36 --download-scalapack=1 \
37 --download-mumps=1 \
38 --download-zlib=1 \
39 --download-hdf5=1
40
41# Compile and install
42if [ $# -eq 0 ]; then
43 make
44 make install
45else
46 make -j $1
47 make -j $1 install
48fi
Note: See TracBrowser for help on using the repository browser.