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
|
Rev | Line | |
---|
[11106] | 1 | #!/bin/bash
|
---|
[13246] | 2 | set -eu
|
---|
[11106] | 3 |
|
---|
| 4 | #Some cleanup
|
---|
| 5 | rm -rf install petsc-2.3.2-p3 src
|
---|
| 6 | mkdir install src
|
---|
| 7 |
|
---|
[12189] | 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 |
|
---|
[11106] | 11 | #Untar and move petsc to install directory
|
---|
| 12 | tar -zxvf petsc-2.3.2-p3.tar.gz
|
---|
| 13 | mv petsc-2.3.2-p3/* install/
|
---|
| 14 | rm -rf petsc-2.3.2-p3
|
---|
| 15 |
|
---|
| 16 | #configure
|
---|
| 17 | cd install
|
---|
[12156] | 18 | PETSC_DIR=$ISSM_DIR/externalpackages/petsc/install
|
---|
[11106] | 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
|
---|
[11128] | 35 | make
|
---|
[11106] | 36 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.