Changeset 14329


Ignore:
Timestamp:
02/07/13 16:15:33 (12 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixed installation script for petsc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/petsc/install-3.3-walgreen.sh

    r13818 r14329  
    11#!/bin/bash
    22
    3 ##Some cleanup
    4 #rm -rf install petsc-3.3-p2 src
    5 #mkdir install src
    6 #
    7 ##Download from ISSM server
    8 #$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'
    9 #
    10 ##Untar and move petsc to install directory
    11 #tar -zxvf  petsc-3.3-p2.tar.gz
    12 #mv petsc-3.3-p2/* src/
    13 #rm -rf petsc-3.3-p2
     3#Some cleanup
     4rm -rf install petsc-3.3-p2 src
     5mkdir install src
     6
     7#Download from ISSM server
     8$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'
     9
     10#Untar and move petsc to install directory
     11tar -zxvf  petsc-3.3-p2.tar.gz
     12mv petsc-3.3-p2/* src/
     13rm -rf petsc-3.3-p2
    1414
    1515#configure
     
    1818 --prefix="$ISSM_DIR/externalpackages/petsc/install" \
    1919 --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
     20 --with-mpi-dir=$ISSM_DIR/externalpackages/mpich2/install \
    2021 --with-debugging=0 \
    2122 --with-shared-libraries=1 \
    2223 --with-blas-lapack-dir=/opt/intel/mkl/10.0.1.014/ \
    23  --known-mpi-shared-libraries=1 \
    24  --with-mpi=1 \
    2524 --download-mumps=yes \
    2625 --download-blacs=yes  \
    2726 --download-blas=yes \
    2827 --download-f-blas-lapack=yes \
     28 --download-scalapack=yes \
    2929 --download-parmetis=yes \
    3030 --download-metis=yes \
    31  --download-trilinos=yes \
    32  --download-euclid=yes \
    33  --download-spai=yes \
    3431 --download-superlu=yes \
    35  --download-hypre=yes \
    36  --download-prometheus=yes \
    37  --with-cc=/opt/mpich/ch-p4/bin/mpicc \
    38  --with-cxx=/opt/mpich/ch-p4/bin/mpicxx \
    39  --with-fc=/opt/mpich/ch-p4/bin/mpif90 \
    40  --COPTFLAGS="-I/opt/mpich/ch-p4/include/ -lmpich -O3" \
    41  --FOPTFLAGS="-I/opt/mpich/ch-p4/include/ -lmpich -O3" \
    42  --CXXOPTFLAGS="-I/opt/mpich/ch-p4/include/ -lmpich -O3"
     32 --download-hypre=yes
     33
     34#Compile petsc and install it
     35make
     36make install
Note: See TracChangeset for help on using the changeset viewer.