source: issm/trunk-jpl/externalpackages/petsc/install-3.2-discover.sh@ 13246

Last change on this file since 13246 was 13246, checked in by seroussi, 13 years ago

CHG: added set -eu in all installation files to stop if an error occurs

  • Property svn:executable set to *
File size: 1.2 KB
RevLine 
[12308]1#!/bin/bash
[13246]2set -eu
[12308]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 \
[13176]24 --with-shared-libraries=1 \
[12308]25 --known-mpi-shared-libraries=1 \
[12622]26 --with-mpi-dir=/usr/local/intel/mpi/4.0.3.008/lib64/ \
[12308]27 --with-blas-lapack-dir=/usr/local/intel/mkl/10.1.2.024/lib/64/ \
[12622]28 --with-scalapack-lib=/usr/local/intel/mkl/10.1.2.024/lib/64/libmkl_scalapack_lp64.a \
29 --with-scalapack-include=/usr/local/intel/mkl/10.1.2.024/include/ \
30 --with-blacs-lib=/usr/local/intel/mkl/10.1.2.024/lib/64/libmkl_blacs_intelmpi_lp64.a \
31 --with-blacs-include=/usr/local/intel/mkl/10.1.2.024/include/ \
[12308]32 --download-mumps=yes \
[12622]33 --download-scalapack=no \
34 --download-blacs=no \
[13176]35 --download-plapack=no \
[12308]36 --download-parmetis=yes \
37 --with-pic=1
38
39echo "== Follow PETSc's instructions"
Note: See TracBrowser for help on using the repository browser.