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:
1022 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | set -eu
|
---|
3 |
|
---|
4 | #Some cleanup
|
---|
5 | rm -rf install petsc-3.1-p7 src
|
---|
6 | mkdir install src
|
---|
7 |
|
---|
8 | #Download from ISSM server
|
---|
9 | $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/petsc-3.1-p7.tar.gz' 'petsc-3.1-p7.tar.gz'
|
---|
10 |
|
---|
11 | #Untar and move petsc to install directory
|
---|
12 | tar -zxvf petsc-3.1-p7.tar.gz
|
---|
13 | mv petsc-3.1-p7/* src/
|
---|
14 | rm -rf petsc-3.1-p7
|
---|
15 |
|
---|
16 | #configure
|
---|
17 | cd src
|
---|
18 | ./config/configure.py \
|
---|
19 | --prefix="$ISSM_DIR/externalpackages/petsc/install" \
|
---|
20 | --with-mpi-dir=$ISSM_DIR/externalpackages/mpich2/install \
|
---|
21 | --PETSC_ARCH=linux-gnu\
|
---|
22 | --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
|
---|
23 | --with-debugging=0 \
|
---|
24 | --with-shared=0 \
|
---|
25 | --download-mumps=yes \
|
---|
26 | --download-scalapack=yes \
|
---|
27 | --download-blacs=yes \
|
---|
28 | --download-blas=yes \
|
---|
29 | --download-f-blas-lapack=yes \
|
---|
30 | --download-parmetis=yes \
|
---|
31 | --FFLAGS=-I$ISSM_DIR/externalpackages/mpich2/install/include \
|
---|
32 | --download-plapack=yes \
|
---|
33 | --COPTFLAGS="-O2" \
|
---|
34 | --FOPTFLAGS="-O2" \
|
---|
35 | --CXXOPTFLAGS="-O2" \
|
---|
36 | --with-pic=1
|
---|
37 |
|
---|
38 | #Compile petsc and install it
|
---|
39 | make
|
---|
40 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.