Last change
on this file since 15319 was 15319, checked in by Mathieu Morlighem, 12 years ago |
CHG: mpich2 is now in externalpackages/mpich
|
-
Property svn:executable
set to
*
|
File size:
1020 bytes
|
Rev | Line | |
---|
[12212] | 1 | #!/bin/bash
|
---|
[13246] | 2 | set -eu
|
---|
[12212] | 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" \
|
---|
[15319] | 20 | --with-mpi-dir=$ISSM_DIR/externalpackages/mpich/install \
|
---|
[12212] | 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 \
|
---|
[15319] | 31 | --FFLAGS=-I$ISSM_DIR/externalpackages/mpich/install/include \
|
---|
[12212] | 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.