Last change
on this file since 12168 was 12168, checked in by cborstad, 13 years ago |
merged trunk-jpl into branch through revision 12167
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Rev | Line | |
---|
[11912] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | STEP=2
|
---|
| 4 |
|
---|
| 5 | if [ $STEP -eq 1 ]; then
|
---|
| 6 | # Adapted from petsc 3.2.
|
---|
| 7 | # Used Mercurial to get code
|
---|
[12168] | 8 | rm -rf src
|
---|
[11912] | 9 | hg clone http://petsc.cs.iit.edu/petsc/petsc-dev src
|
---|
| 10 | cd src
|
---|
| 11 | hg clone http://petsc.cs.iit.edu/petsc/BuildSystem config/BuildSystem
|
---|
| 12 | fi
|
---|
| 13 |
|
---|
| 14 | # To update (via Mercurial):
|
---|
| 15 | # cd petsc-dev
|
---|
| 16 | # hg pull -u
|
---|
| 17 | # cd config/BuildSystem
|
---|
| 18 | # hg pull -u
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | # configure script
|
---|
| 22 | # Note: using metis from externalpackages did not work...
|
---|
| 23 | # for now downloading new metis
|
---|
| 24 | # -then rename metis in externalpackages to metis2
|
---|
| 25 |
|
---|
| 26 |
|
---|
| 27 | if [ $STEP -eq 2 ]; then
|
---|
[12168] | 28 | rm -rf install
|
---|
[11912] | 29 | cd src
|
---|
| 30 | ./config/configure.py \
|
---|
[12168] | 31 | --prefix="$ISSM_DIR/externalpackages/petsc/install" \
|
---|
| 32 | --with-mpi-dir="$ISSM_DIR/externalpackages/mpich2/install" \
|
---|
[11912] | 33 | --with-clanguage=C++ \
|
---|
| 34 | --PETSC_ARCH=linux-gnu-amd64 \
|
---|
[12168] | 35 | --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
|
---|
[11912] | 36 | --with-debugging=0 \
|
---|
| 37 | --with-shared-libraries=0 \
|
---|
| 38 | --download-metis=yes \
|
---|
| 39 | --download-mumps=yes \
|
---|
| 40 | --download-scalapack=yes \
|
---|
| 41 | --download-blacs=yes \
|
---|
| 42 | --download-blas=yes \
|
---|
| 43 | --download-f-blas-lapack=yes \
|
---|
| 44 | --download-plapack=yes \
|
---|
| 45 | --download-parmetis=yes \
|
---|
[12168] | 46 | --download-spai=yes \
|
---|
[11912] | 47 | --with-pic=1
|
---|
| 48 |
|
---|
| 49 | #Compile petsc and install it
|
---|
| 50 | make
|
---|
| 51 | make install
|
---|
| 52 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.