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
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | set -eu
|
---|
3 |
|
---|
4 | #Some cleanup
|
---|
5 | rm -rf install petsc-3.2-p3 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.2-p3.tar.gz' 'petsc-3.2-p3.tar.gz'
|
---|
10 |
|
---|
11 | #Untar and move petsc to install directory
|
---|
12 | tar -zxvf petsc-3.2-p3.tar.gz
|
---|
13 | mv petsc-3.2-p3/* src/
|
---|
14 | rm -rf petsc-3.2-p3
|
---|
15 |
|
---|
16 | #configure
|
---|
17 | cd 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=/usr/local/intel/mpi/4.0.3.008/lib64/ \
|
---|
27 | --with-blas-lapack-dir=/usr/local/intel/mkl/10.1.2.024/lib/64/ \
|
---|
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/ \
|
---|
32 | --download-mumps=yes \
|
---|
33 | --download-scalapack=no \
|
---|
34 | --download-blacs=no \
|
---|
35 | --download-plapack=no \
|
---|
36 | --download-parmetis=yes \
|
---|
37 | --with-pic=1
|
---|
38 |
|
---|
39 | echo "== Follow PETSc's instructions"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.