source: issm/trunk-jpl/externalpackages/petsc/install-2.3.2-cosmos.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: 928 bytes
Line 
1#!/bin/bash
2set -eu
3
4#Some cleanup
5rm -rf install petsc-2.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-2.3.2-p3.tar.gz' 'petsc-2.3.2-p3.tar.gz'
10
11#Untar and move petsc to install directory
12tar -zxvf petsc-2.3.2-p3.tar.gz
13mv petsc-2.3.2-p3/* install/
14rm -rf petsc-2.3.2-p3
15
16#configure
17cd install
18PETSC_DIR=$ISSM_DIR/externalpackages/petsc/install
19./config/configure.py \
20 --prefix=$PETSC_DIR \
21 --with-batch=1 \
22 --ISSM_ARCH=$ISSM_ARCH \
23 --PETSC_DIR=$PETSC_DIR \
24 --with-debugging=no COPTFLAGS=-O3 FOPTFLAGS=-O3 \
25 --with-blas-lapack-dir=/opt/intel/mkl/10.0.5.025/ \
26 --with-mpi-dir=/opt/mpich/gm/intel10.1/ \
27 --download-mumps=yes \
28 --download-scalapack=yes \
29 --download-blacs=yes \
30 --download-plapack=yes \
31 --FFLAGS=-I/usr/include \
32 --with-mpi-shared=0
33
34#Compile petsc and install it
35make
36make install
Note: See TracBrowser for help on using the repository browser.