[13394] | 1 | Index: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/petsc/install-3.3-macosx64.sh
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/petsc/install-3.3-macosx64.sh (revision 0)
|
---|
| 4 | +++ /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/petsc/install-3.3-macosx64.sh (revision 12816)
|
---|
| 5 | @@ -0,0 +1,35 @@
|
---|
| 6 | +#!/bin/bash
|
---|
| 7 | +
|
---|
| 8 | +#Some cleanup
|
---|
| 9 | +rm -rf install petsc-3.3-p2 src
|
---|
| 10 | +mkdir install src
|
---|
| 11 | +
|
---|
| 12 | +#Download from ISSM server
|
---|
| 13 | +$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/petsc-lite-3.3-p2.tar.gz' 'petsc-3.3-p2.tar.gz'
|
---|
| 14 | +
|
---|
| 15 | +#Untar and move petsc to install directory
|
---|
| 16 | +tar -zxvf petsc-3.3-p2.tar.gz
|
---|
| 17 | +mv petsc-3.3-p2/* src/
|
---|
| 18 | +rm -rf petsc-3.3-p2
|
---|
| 19 | +
|
---|
| 20 | +#configure
|
---|
| 21 | +cd src
|
---|
| 22 | +./config/configure.py \
|
---|
| 23 | + --prefix="$ISSM_DIR/externalpackages/petsc/install" \
|
---|
| 24 | + --with-mpi-dir=$ISSM_DIR/externalpackages/mpich2/install \
|
---|
| 25 | + --PETSC_ARCH="macosx-gnu" \
|
---|
| 26 | + --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
|
---|
| 27 | + --with-debugging=0 \
|
---|
| 28 | + --with-shared-libraries=1 \
|
---|
| 29 | + --download-mumps=yes \
|
---|
| 30 | + --download-scalapack=yes \
|
---|
| 31 | + --download-blacs=yes \
|
---|
| 32 | + --download-blas=yes \
|
---|
| 33 | + --download-f-blas-lapack=yes \
|
---|
| 34 | + --download-plapack=yes \
|
---|
| 35 | + --download-parmetis=yes \
|
---|
| 36 | + --download-metis=yes
|
---|
| 37 | +
|
---|
| 38 | +#Compile petsc and install it
|
---|
| 39 | +make
|
---|
| 40 | +make install
|
---|
| 41 |
|
---|
| 42 | Property changes on: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/petsc/install-3.3-macosx64.sh
|
---|
| 43 | ___________________________________________________________________
|
---|
| 44 | Added: svn:executable
|
---|
| 45 | ## -0,0 +1 ##
|
---|
| 46 | +*
|
---|
| 47 | Index: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/petsc/install-3.3-linux64.sh
|
---|
| 48 | ===================================================================
|
---|
| 49 | --- /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/petsc/install-3.3-linux64.sh (revision 12815)
|
---|
| 50 | +++ /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/petsc/install-3.3-linux64.sh (revision 12816)
|
---|
| 51 | @@ -20,7 +20,7 @@
|
---|
| 52 | --PETSC_ARCH=linux-gnu-amd64 \
|
---|
| 53 | --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
|
---|
| 54 | --with-debugging=0 \
|
---|
| 55 | - --with-shared-libraries=0 \
|
---|
| 56 | + --with-shared-libraries=1 \
|
---|
| 57 | --download-mumps=yes \
|
---|
| 58 | --download-scalapack=yes \
|
---|
| 59 | --download-blacs=yes \
|
---|