source: issm/trunk-jpl/externalpackages/petsc/install-2.3.2-cosmos.sh@ 12189

Last change on this file since 12189 was 12189, checked in by Mathieu Morlighem, 13 years ago

Deleted all externalpackage from trunk, use python script to download from issm website

  • Property svn:executable set to *
File size: 920 bytes
Line 
1#!/bin/bash
2
3#Some cleanup
4rm -rf install petsc-2.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-2.3.2-p3.tar.gz' 'petsc-2.3.2-p3.tar.gz'
9
10#Untar and move petsc to install directory
11tar -zxvf petsc-2.3.2-p3.tar.gz
12mv petsc-2.3.2-p3/* install/
13rm -rf petsc-2.3.2-p3
14
15#configure
16cd install
17PETSC_DIR=$ISSM_DIR/externalpackages/petsc/install
18./config/configure.py \
19 --prefix=$PETSC_DIR \
20 --with-batch=1 \
21 --ISSM_ARCH=$ISSM_ARCH \
22 --PETSC_DIR=$PETSC_DIR \
23 --with-debugging=no COPTFLAGS=-O3 FOPTFLAGS=-O3 \
24 --with-blas-lapack-dir=/opt/intel/mkl/10.0.5.025/ \
25 --with-mpi-dir=/opt/mpich/gm/intel10.1/ \
26 --download-mumps=yes \
27 --download-scalapack=yes \
28 --download-blacs=yes \
29 --download-plapack=yes \
30 --FFLAGS=-I/usr/include \
31 --with-mpi-shared=0
32
33#Compile petsc and install it
34make
35make install
Note: See TracBrowser for help on using the repository browser.