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

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

CHG: add shared libs and remove plapack

  • Property svn:executable set to *
File size: 1.2 KB
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 \
[13176]23 --with-shared-libraries=1 \
[12308]24 --known-mpi-shared-libraries=1 \
[12622]25 --with-mpi-dir=/usr/local/intel/mpi/4.0.3.008/lib64/ \
[12308]26 --with-blas-lapack-dir=/usr/local/intel/mkl/10.1.2.024/lib/64/ \
[12622]27 --with-scalapack-lib=/usr/local/intel/mkl/10.1.2.024/lib/64/libmkl_scalapack_lp64.a \
28 --with-scalapack-include=/usr/local/intel/mkl/10.1.2.024/include/ \
29 --with-blacs-lib=/usr/local/intel/mkl/10.1.2.024/lib/64/libmkl_blacs_intelmpi_lp64.a \
30 --with-blacs-include=/usr/local/intel/mkl/10.1.2.024/include/ \
[12308]31 --download-mumps=yes \
[12622]32 --download-scalapack=no \
33 --download-blacs=no \
[13176]34 --download-plapack=no \
[12308]35 --download-parmetis=yes \
36 --with-pic=1
37
38echo "== Follow PETSc's instructions"
Note: See TracBrowser for help on using the repository browser.