Last change
on this file since 12258 was 12258, checked in by cborstad, 13 years ago |
merged trunk-jpl into branches/trunk-jpl-damage through revision 12254
|
-
Property svn:executable
set to
*
|
File size:
1.0 KB
|
Rev | Line | |
---|
[11106] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | #Some cleanup
|
---|
| 4 | rm -rf install petsc-2.3.2-p3 src
|
---|
| 5 | mkdir install src
|
---|
| 6 |
|
---|
[12258] | 7 | #Download from ISSM server
|
---|
| 8 | $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'
|
---|
| 9 |
|
---|
[11106] | 10 | #Untar and move petsc to install directory
|
---|
| 11 | tar -zxvf petsc-2.3.2-p3.tar.gz
|
---|
| 12 | mv petsc-2.3.2-p3/* install/
|
---|
| 13 | rm -rf petsc-2.3.2-p3
|
---|
| 14 |
|
---|
| 15 | #configure
|
---|
| 16 | cd install
|
---|
| 17 | ./config/configure.py \
|
---|
[12168] | 18 | --prefix="$ISSM_DIR/externalpackages/petsc/install" \
|
---|
| 19 | --with-mpi-dir=$ISSM_DIR/externalpackages/mpich2/install \
|
---|
[11106] | 20 | --PETSC_ARCH=linux-gnu-amd64 \
|
---|
[12168] | 21 | --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/install" \
|
---|
[11106] | 22 | --with-fc=gfortran \
|
---|
| 23 | --with-debugging=1 \
|
---|
| 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 \
|
---|
[12168] | 30 | --FFLAGS=-I$ISSM_DIR/externalpackages/mpich2/install/include \
|
---|
[11106] | 31 | --download-plapack=yes \
|
---|
| 32 | --COPTFLAGS="-march=opteron -O2" \
|
---|
| 33 | --FOPTFLAGS="-march=opteron -O2" \
|
---|
| 34 | --CXXOPTFLAGS="-march=opteron -O2"
|
---|
| 35 |
|
---|
| 36 | #Compile petsc and install it
|
---|
[11128] | 37 | make
|
---|
[11106] | 38 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.