Ignore:
Timestamp:
11/14/19 12:36:05 (6 years ago)
Author:
jdquinn
Message:

CHG: Will have to wait for upgrade to Ubuntu 18 to use latest versions of MPICH and PETSc (alternatively, gfortran could be upgraded, but we need to update Ubuntu at some point anyhow)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/petsc/install-3.7-linux64.sh

    r23435 r24331  
    22set -eu
    33
    4 #Some cleanup
    5 rm -rf install petsc-3.7.6 src
     4
     5## Constants
     6#
     7VER="3.7.6"
     8
     9# Download source
     10$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
     11
     12# Unpack source
     13tar -zxvf  petsc-$VER.tar.gz
     14
     15# Cleanup
     16rm -rf install src
    617mkdir install src
    718
    8 #Download from ISSM server
    9 $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.7.6.tar.gz' 'petsc-3.7.6.tar.gz'
     19# Move source to 'src' directory
     20mv petsc-$VER/* src/
     21rm -rf petsc-$VER
    1022
    11 #Untar and move petsc to install directory
    12 tar -zxvf  petsc-3.7.6.tar.gz
    13 mv petsc-3.7.6/* src/
    14 rm -rf petsc-3.7.6
    15 
    16 #configure
     23# Configure
    1724cd src
    1825./config/configure.py \
    19         --prefix="$ISSM_DIR/externalpackages/petsc/install" \
    20         --with-mpi-dir="$ISSM_DIR/externalpackages/mpich/install" \
    21         --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
     26        --prefix="${ISSM_DIR}/externalpackages/petsc/install" \
     27        --PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
     28        --with-mpi-dir="${ISSM_DIR}/externalpackages/mpich/install" \
     29        --with-blas-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -lblas" \
     30        --with-lapack-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -llapack" \
    2231        --with-debugging=0 \
    2332        --with-valgrind=0 \
     
    2534        --with-ssl=0 \
    2635        --with-shared-libraries=1 \
     36        --download-zlib=1\
     37        --download-hdf5=1 \
     38        --download-netcdf=1 \
    2739        --download-metis=1 \
    2840        --download-parmetis=1 \
    29         --download-mumps=1 \
    3041        --download-scalapack=1 \
    31         --download-fblaslapack=1 \
    32         --with-pic=1
     42        --download-mumps=1
    3343
    34 #Compile and intall
    35 make
    36 make install
     44# Compile and install
     45if [ $# -eq 0 ]; then
     46        make
     47        make install
     48else
     49        make -j $1
     50        make -j $1 install
     51fi
     52
     53# Return to initial directory
     54cd ..
Note: See TracChangeset for help on using the changeset viewer.