|
Last change
on this file since 15118 was 15118, checked in by Eric.Larour, 12 years ago |
|
NEW: petsc running in parallel
|
-
Property svn:executable
set to
*
|
|
File size:
910 bytes
|
| Rev | Line | |
|---|
| [15118] | 1 | #!/bin/bash
|
|---|
| 2 | set -eu
|
|---|
| 3 |
|
|---|
| 4 | #Some cleanup
|
|---|
| 5 | rm -rf install petsc-3.1-p7 src
|
|---|
| 6 | mkdir install src
|
|---|
| 7 |
|
|---|
| 8 | #Download from ISSM server
|
|---|
| 9 | $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/petsc-3.1-p7.tar.gz' 'petsc-3.1-p7.tar.gz'
|
|---|
| 10 |
|
|---|
| 11 | #Untar and move petsc to install directory
|
|---|
| 12 | tar -zxvf petsc-3.1-p7.tar.gz
|
|---|
| 13 | mv petsc-3.1-p7/* src/
|
|---|
| 14 | rm -rf petsc-3.1-p7
|
|---|
| 15 |
|
|---|
| 16 | cd src
|
|---|
| 17 | ./config/configure.py \
|
|---|
| 18 | --prefix="$ISSM_DIR/externalpackages/petsc/install" \
|
|---|
| 19 | --PETSC_ARCH=cygwin-intel \
|
|---|
| 20 | --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
|
|---|
| 21 | --with-debugging=0 \
|
|---|
| 22 | --download-c-blas-lapack=yes \
|
|---|
| 23 | --with-cc='win32fe cl' \
|
|---|
| 24 | --with-fc=0 \
|
|---|
| 25 | --with-cxx='win32fe cl' \
|
|---|
| 26 | --with-clanguage=cxx \
|
|---|
| 27 | --with-mpi-include="/cygdrive/c/MPICH2/include" \
|
|---|
| 28 | --with-mpi-lib="/cygdrive/c/MPICH2/lib/mpi.lib"
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | #Compile petsc and install it
|
|---|
| 32 | make
|
|---|
| 33 | make install
|
|---|
| 34 |
|
|---|
| 35 | patch ../install/include/petscfix.h ../configs/3.1/win7/petscfix.h.patch
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.