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
|
---|
4 | rm -rf install petsc-2.3.2-p3 src
|
---|
5 | mkdir install src
|
---|
6 |
|
---|
7 | #Untar and move petsc to install directory
|
---|
8 | tar -zxvf petsc-2.3.2-p3.tar.gz
|
---|
9 | mv petsc-2.3.2-p3/* install/
|
---|
10 | rm -rf petsc-2.3.2-p3
|
---|
11 |
|
---|
12 | #configure
|
---|
13 | cd 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
|
---|
34 | make
|
---|
35 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.