source: issm/branches/trunk-larour-NatGeoScience2016/externalpackages/petsc/install-3.7-macosx64.sh@ 21243

Last change on this file since 21243 was 20953, checked in by agscott1, 9 years ago

CHG: Reverting petsc external package and vim external package

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