source: issm/branches/trunk-jpl-damage/externalpackages/petsc/install-2.3.2-linux64-astrid.sh@ 11427

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

Fixed installation script (problem if input-meta undefined)

  • Property svn:executable set to *
File size: 906 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_TIER/externalpackages/petsc/install" \
16 --with-mpi-dir=$ISSM_TIER/externalpackages/mpich2/install \
17 --PETSC_ARCH=linux-gnu-amd64 \
18 --PETSC_DIR="$ISSM_TIER/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_TIER/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.