source: issm/trunk-jpl/externalpackages/petsc/install-3.2-discover.sh@ 12308

Last change on this file since 12308 was 12308, checked in by schlegel, 13 years ago

add discover scripts

  • Property svn:executable set to *
File size: 947 bytes
RevLine 
[12308]1#!/bin/bash
2
3#Some cleanup
4rm -rf install petsc-3.2-p3 src
5mkdir install src
6
7#Download from ISSM server
8$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/petsc-3.2-p3.tar.gz' 'petsc-3.2-p3.tar.gz'
9
10#Untar and move petsc to install directory
11tar -zxvf petsc-3.2-p3.tar.gz
12mv petsc-3.2-p3/* src/
13rm -rf petsc-3.2-p3
14
15#configure
16cd src
17./config/configure.py \
18 --prefix="$ISSM_DIR/externalpackages/petsc/install" \
19 --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
20 --PETSC_ARCH="$ISSM_ARCH" \
21 --with-batch=1 \
22 --with-debugging=0 \
23 --with-shared-libraries=0 \
24 --known-mpi-shared-libraries=1 \
25 --with-mpi-dir=/usr/local/intel/mpi/3.2.2.006/lib64 \
26 --with-blas-lapack-dir=/usr/local/intel/mkl/10.1.2.024/lib/64/ \
27 --download-mumps=yes \
28 --download-scalapack=yes \
29 --download-blacs=yes \
30 --download-plapack=yes \
31 --download-parmetis=yes \
32 --with-pic=1
33
34echo "== Follow PETSc's instructions"
Note: See TracBrowser for help on using the repository browser.