|
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:
751 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 | PETSC_DIR=$ISSM_DIR/externalpackages/petsc/install
|
|---|
| 15 | ./config/configure.py \
|
|---|
| 16 | --prefix=$PETSC_DIR \
|
|---|
| 17 | --with-batch=1 \
|
|---|
| 18 | --ISSM_ARCH=$ISSM_ARCH \
|
|---|
| 19 | --PETSC_DIR=$PETSC_DIR \
|
|---|
| 20 | --with-debugging=no COPTFLAGS=-O3 FOPTFLAGS=-O3 \
|
|---|
| 21 | --with-blas-lapack-dir=/opt/intel/mkl/10.0.5.025/ \
|
|---|
| 22 | --with-mpi-dir=/opt/mpich/gm/intel10.1/ \
|
|---|
| 23 | --download-mumps=yes \
|
|---|
| 24 | --download-scalapack=yes \
|
|---|
| 25 | --download-blacs=yes \
|
|---|
| 26 | --download-plapack=yes \
|
|---|
| 27 | --FFLAGS=-I/usr/include \
|
|---|
| 28 | --with-mpi-shared=0
|
|---|
| 29 |
|
|---|
| 30 | #Compile petsc and install it
|
|---|
| 31 | make
|
|---|
| 32 | make install
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.