Last change
on this file since 12189 was 12189, checked in by Mathieu Morlighem, 13 years ago |
Deleted all externalpackage from trunk, use python script to download from issm website
|
-
Property svn:executable
set to
*
|
File size:
920 bytes
|
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 |
|
---|
[12189] | 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
|
---|
[12156] | 17 | PETSC_DIR=$ISSM_DIR/externalpackages/petsc/install
|
---|
[11106] | 18 | ./config/configure.py \
|
---|
| 19 | --prefix=$PETSC_DIR \
|
---|
| 20 | --with-batch=1 \
|
---|
| 21 | --ISSM_ARCH=$ISSM_ARCH \
|
---|
| 22 | --PETSC_DIR=$PETSC_DIR \
|
---|
| 23 | --with-debugging=no COPTFLAGS=-O3 FOPTFLAGS=-O3 \
|
---|
| 24 | --with-blas-lapack-dir=/opt/intel/mkl/10.0.5.025/ \
|
---|
| 25 | --with-mpi-dir=/opt/mpich/gm/intel10.1/ \
|
---|
| 26 | --download-mumps=yes \
|
---|
| 27 | --download-scalapack=yes \
|
---|
| 28 | --download-blacs=yes \
|
---|
| 29 | --download-plapack=yes \
|
---|
| 30 | --FFLAGS=-I/usr/include \
|
---|
| 31 | --with-mpi-shared=0
|
---|
| 32 |
|
---|
| 33 | #Compile petsc and install it
|
---|
[11128] | 34 | make
|
---|
[11106] | 35 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.