source: issm/trunk/externalpackages/petsc/install-3.2-greenplanet.sh@ 13975

Last change on this file since 13975 was 13975, checked in by Mathieu Morlighem, 12 years ago

merged trunk-jpl and trunk for revision 13974

  • Property svn:executable set to *
File size: 940 bytes
Line 
1#!/bin/bash
2set -eu
3
4#Some cleanup
5rm -rf install petsc-3.2-p3 src
6mkdir install src
7
8#Download from ISSM server
9$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/petsc-3.2-p3.tar.gz' 'petsc-3.2-p3.tar.gz'
10
11#Untar and move petsc to install directory
12tar -zxvf petsc-3.2-p3.tar.gz
13mv petsc-3.2-p3/* src/
14rm -rf petsc-3.2-p3
15
16#configure
17cd src
18./config/configure.py \
19 --prefix="$ISSM_DIR/externalpackages/petsc/install" \
20 --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
21 --PETSC_ARCH="$ISSM_ARCH" \
22 --with-batch=1 \
23 --with-debugging=0 \
24 --with-shared-libraries=1 \
25 --known-mpi-shared-libraries=1 \
26 --with-mpi-dir=/sopt/mpi/openmpi-1.5.4_psm/intel/ \
27 --with-blas-lapack-dir=/opt/intel/mkl/10.2.4.032/ \
28 --download-mumps=yes \
29 --download-scalapack=yes \
30 --download-blacs=yes \
31 --download-plapack=yes \
32 --download-parmetis=yes \
33 --with-pic=1
34
35echo "== Follow PETSc's instructions"
Note: See TracBrowser for help on using the repository browser.