Last change
on this file since 12258 was 12258, checked in by cborstad, 13 years ago |
merged trunk-jpl into branches/trunk-jpl-damage through revision 12254
|
-
Property svn:executable
set to
*
|
File size:
1.0 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | #Some cleanup
|
---|
4 | rm -rf install petsc-2.3.2-p3 src
|
---|
5 | mkdir install src
|
---|
6 |
|
---|
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 |
|
---|
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
|
---|
17 | ./config/configure.py \
|
---|
18 | --prefix="$ISSM_DIR/externalpackages/petsc/install" \
|
---|
19 | --with-mpi-dir=$ISSM_DIR/externalpackages/mpich2/install \
|
---|
20 | --PETSC_ARCH=linux-gnu-amd64 \
|
---|
21 | --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/install" \
|
---|
22 | --with-fc=gfortran \
|
---|
23 | --with-debugging=1 \
|
---|
24 | --with-shared=0 \
|
---|
25 | --download-mumps=yes \
|
---|
26 | --download-scalapack=yes \
|
---|
27 | --download-blacs=yes \
|
---|
28 | --download-blas=yes \
|
---|
29 | --download-f-blas-lapack=yes \
|
---|
30 | --FFLAGS=-I$ISSM_DIR/externalpackages/mpich2/install/include \
|
---|
31 | --download-plapack=yes \
|
---|
32 | --COPTFLAGS="-march=opteron -O2" \
|
---|
33 | --FOPTFLAGS="-march=opteron -O2" \
|
---|
34 | --CXXOPTFLAGS="-march=opteron -O2"
|
---|
35 |
|
---|
36 | #Compile petsc and install it
|
---|
37 | make
|
---|
38 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.