source: issm/trunk-jpl/externalpackages/petsc/install-3.1-win7-parallel.sh@ 15118

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
Line 
1#!/bin/bash
2set -eu
3
4#Some cleanup
5rm -rf install petsc-3.1-p7 src
6mkdir 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
12tar -zxvf petsc-3.1-p7.tar.gz
13mv petsc-3.1-p7/* src/
14rm -rf petsc-3.1-p7
15
16cd 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
32make
33make install
34
35patch ../install/include/petscfix.h ../configs/3.1/win7/petscfix.h.patch
Note: See TracBrowser for help on using the repository browser.