Last change
on this file since 12332 was 12332, checked in by Mathieu Morlighem, 13 years ago |
merged trunk-jpl and trunk for revision 12326M
|
-
Property svn:executable
set to
*
|
File size:
932 bytes
|
Rev | Line | |
---|
[11352] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | #Some cleanup
|
---|
| 4 | rm -rf install petsc-3.2-p3 src
|
---|
| 5 | mkdir install src
|
---|
| 6 |
|
---|
[12332] | 7 | #Download from ISSM server
|
---|
| 8 | $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/petsc-3.2-p3.tar.gz' 'petsc-3.2-p3.tar.gz'
|
---|
| 9 |
|
---|
[11352] | 10 | #Untar and move petsc to install directory
|
---|
| 11 | tar -zxvf petsc-3.2-p3.tar.gz
|
---|
| 12 | mv petsc-3.2-p3/* src/
|
---|
| 13 | rm -rf petsc-3.2-p3
|
---|
| 14 |
|
---|
| 15 | #configure
|
---|
| 16 | cd src
|
---|
| 17 | ./config/configure.py \
|
---|
[12332] | 18 | --prefix="$ISSM_DIR/externalpackages/petsc/install" \
|
---|
| 19 | --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
|
---|
[11366] | 20 | --PETSC_ARCH="$ISSM_ARCH" \
|
---|
| 21 | --with-batch=1 \
|
---|
[11352] | 22 | --with-debugging=0 \
|
---|
| 23 | --with-shared-libraries=0 \
|
---|
| 24 | --known-mpi-shared-libraries=1 \
|
---|
[11382] | 25 | --with-mpi-dir=/sopt/mpi/openmpi-1.5.4_psm/intel/ \
|
---|
[11366] | 26 | --with-blas-lapack-dir=/opt/intel/mkl/10.2.4.032/ \
|
---|
[11352] | 27 | --download-mumps=yes \
|
---|
| 28 | --download-scalapack=yes \
|
---|
| 29 | --download-blacs=yes \
|
---|
| 30 | --download-plapack=yes \
|
---|
| 31 | --download-parmetis=yes \
|
---|
| 32 | --with-pic=1
|
---|
| 33 |
|
---|
[11366] | 34 | echo "== Follow PETSc's instructions"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.