|
Last change
on this file since 13975 was 13975, checked in by Mathieu Morlighem, 13 years ago |
|
merged trunk-jpl and trunk for revision 13974
|
-
Property svn:executable
set to
*
|
|
File size:
940 bytes
|
| Rev | Line | |
|---|
| [11352] | 1 | #!/bin/bash
|
|---|
| [13395] | 2 | set -eu
|
|---|
| [11352] | 3 |
|
|---|
| 4 | #Some cleanup
|
|---|
| 5 | rm -rf install petsc-3.2-p3 src
|
|---|
| 6 | mkdir install src
|
|---|
| 7 |
|
|---|
| [12332] | 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 |
|
|---|
| [11352] | 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 \
|
|---|
| [12332] | 19 | --prefix="$ISSM_DIR/externalpackages/petsc/install" \
|
|---|
| 20 | --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
|
|---|
| [11366] | 21 | --PETSC_ARCH="$ISSM_ARCH" \
|
|---|
| 22 | --with-batch=1 \
|
|---|
| [11352] | 23 | --with-debugging=0 \
|
|---|
| [13975] | 24 | --with-shared-libraries=1 \
|
|---|
| [11352] | 25 | --known-mpi-shared-libraries=1 \
|
|---|
| [11382] | 26 | --with-mpi-dir=/sopt/mpi/openmpi-1.5.4_psm/intel/ \
|
|---|
| [11366] | 27 | --with-blas-lapack-dir=/opt/intel/mkl/10.2.4.032/ \
|
|---|
| [11352] | 28 | --download-mumps=yes \
|
|---|
| 29 | --download-scalapack=yes \
|
|---|
| 30 | --download-blacs=yes \
|
|---|
| 31 | --download-plapack=yes \
|
|---|
| 32 | --download-parmetis=yes \
|
|---|
| 33 | --with-pic=1
|
|---|
| 34 |
|
|---|
| [11366] | 35 | echo "== Follow PETSc's instructions"
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.