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