source: issm/trunk-jpl/externalpackages/petsc/install-3.7-mac.sh@ 24394

Last change on this file since 24394 was 24394, checked in by jdquinn, 5 years ago

CHG: Reverting to MPICH 3.2 and PETSc 3.7 for Mac builds; cleanup; eased field tolerance

  • Property svn:executable set to *
File size: 814 bytes
Line 
1#!/bin/bash
2set -eu
3
4#Some cleanup
5rm -rf install petsc-3.7.6 src
6mkdir install src
7
8#Download from ISSM server
9$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.7.6.tar.gz' 'petsc-3.7.6.tar.gz'
10
11#Untar and move petsc to install directory
12tar -zxvf petsc-3.7.6.tar.gz
13mv petsc-3.7.6/* src/
14rm -rf petsc-3.7.6
15
16#configure
17cd src
18./config/configure.py \
19 --prefix="$ISSM_DIR/externalpackages/petsc/install" \
20 --with-mpi-dir="$ISSM_DIR/externalpackages/mpich/install" \
21 --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
22 --with-debugging=1 \
23 --with-valgrind=0 \
24 --with-x=0 \
25 --with-ssl=0 \
26 --with-shared-libraries=1 \
27 --download-metis=1 \
28 --download-parmetis=1 \
29 --download-mumps=1 \
30 --download-scalapack=1
31
32#Compile and intall
33make
34make install
Note: See TracBrowser for help on using the repository browser.