Last change
on this file since 24313 was 24313, checked in by Mathieu Morlighem, 5 years ago |
merged trunk-jpl and trunk for revision 24310
|
-
Property svn:executable
set to
*
|
File size:
843 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | set -eu
|
---|
3 |
|
---|
4 | #Some cleanup
|
---|
5 | rm -rf install petsc-3.5.3 src
|
---|
6 | mkdir install src
|
---|
7 |
|
---|
8 | #Download from ISSM server
|
---|
9 | $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.5.3.tar.gz' 'petsc-3.5.3.tar.gz'
|
---|
10 |
|
---|
11 | #Untar and move petsc to install directory
|
---|
12 | tar -zxvf petsc-3.5.3.tar.gz
|
---|
13 | mv petsc-3.5.3/* src/
|
---|
14 | rm -rf petsc-3.5.3
|
---|
15 |
|
---|
16 | #configure
|
---|
17 | cd src
|
---|
18 | ./config/configure.py \
|
---|
19 | --prefix="$ISSM_DIR/externalpackages/petsc/install" \
|
---|
20 | --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
|
---|
21 | --with-mpi-dir="$ISSM_DIR/externalpackages/mpich/install" \
|
---|
22 | --with-debugging=0 \
|
---|
23 | --with-valgrind=0 \
|
---|
24 | --with-ssl=0 \
|
---|
25 | --with-x=0 \
|
---|
26 | --with-shared-libraries=0 \
|
---|
27 | --download-metis=1 \
|
---|
28 | --download-parmetis=1 \
|
---|
29 | --download-mumps=1 \
|
---|
30 | --download-fblaslapack=1 \
|
---|
31 | --download-scalapack=1
|
---|
32 |
|
---|
33 |
|
---|
34 | #Compile and intall
|
---|
35 | make
|
---|
36 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.