source: issm/branches/trunk-jpl-damage/externalpackages/petsc/install-3.1-cosmos.sh@ 12168

Last change on this file since 12168 was 12168, checked in by cborstad, 13 years ago

merged trunk-jpl into branch through revision 12167

  • Property svn:executable set to *
File size: 769 bytes
RevLine 
[11106]1#!/bin/bash
2
3#Some cleanup
4rm -rf install petsc-3.1-p7 src
5mkdir install src
6
7#Untar and move petsc to install directory
8tar -zxvf petsc-3.1-p7.tar.gz
9mv petsc-3.1-p7/* src/
10rm -rf petsc-3.1-p7
11
12#configure
13cd src
14./config/configure.py \
[12168]15 --prefix="$ISSM_DIR/externalpackages/petsc/install" \
16 --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
[11106]17 --with-batch=1 \
18 --ISSM_ARCH=$ISSM_ARCH \
19 --with-debugging=no COPTFLAGS=-O3 FOPTFLAGS=-O3 \
20 --with-blas-lapack-dir=/opt/intel/mkl/10.0.5.025/ \
21 --with-mpi-dir=/opt/mpich/gm/intel10.1/ \
22 --download-mumps=yes \
23 --download-scalapack=yes \
24 --download-blacs=yes \
25 --download-plapack=yes \
26 --FFLAGS=-I/usr/include \
27 --with-mpi-shared=0 \
28 --download-parmetis=yes
29
30#Compile petsc and install it
[11128]31make
[11106]32make install
Note: See TracBrowser for help on using the repository browser.