source: issm/branches/trunk-jpl-damage/externalpackages/petsc/install-2.3.2-linux64-astrid.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: 902 bytes
Line 
1#!/bin/bash
2
3#Some cleanup
4rm -rf install petsc-2.3.2-p3 src
5mkdir install src
6
7#Untar and move petsc to install directory
8tar -zxvf petsc-2.3.2-p3.tar.gz
9mv petsc-2.3.2-p3/* install/
10rm -rf petsc-2.3.2-p3
11
12#configure
13cd install
14./config/configure.py \
15 --prefix="$ISSM_DIR/externalpackages/petsc/install" \
16 --with-mpi-dir=$ISSM_DIR/externalpackages/mpich2/install \
17 --PETSC_ARCH=linux-gnu-amd64 \
18 --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/install" \
19 --with-fc=gfortran \
20 --with-debugging=1 \
21 --with-shared=0 \
22 --download-mumps=yes \
23 --download-scalapack=yes \
24 --download-blacs=yes \
25 --download-blas=yes \
26 --download-f-blas-lapack=yes \
27 --FFLAGS=-I$ISSM_DIR/externalpackages/mpich2/install/include \
28 --download-plapack=yes \
29 --COPTFLAGS="-march=opteron -O2" \
30 --FOPTFLAGS="-march=opteron -O2" \
31 --CXXOPTFLAGS="-march=opteron -O2"
32
33#Compile petsc and install it
34make
35make install
Note: See TracBrowser for help on using the repository browser.