source: issm/trunk-jpl/externalpackages/petsc/install-3.15-pleiades.sh@ 26950

Last change on this file since 26950 was 26950, checked in by jdquinn, 3 years ago

CHG: Various changes to external packages and configuration in support of solid earth build on Pleiades; various pending commits

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/bash
2set -eu
3
4
5## Constants
6#
7VER="3.15.0"
8
9PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
10PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
11
12# Download source
13$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
14
15# Unpack source
16tar -zxvf petsc-3.15.0.tar.gz
17
18# Cleanup
19rm -rf install src
20mkdir install src
21
22# Move source to $PETSC_DIR
23mv petsc-3.15.0/* src/
24rm -rf petsc-3.15.0
25
26
27# Configure
28#
29# NOTE: Based on /nasa/petsc/3.7.5/intel_mpt/lib/petsc/conf/petscvariables; look for CONFIGURE_OPTIONS
30#
31cd src
32./config/configure.py \
33 --prefix="${PREFIX}" \
34 --PETSC_DIR="${PETSC_DIR}" \
35 --with-blas-lapack-dir="/nasa/intel/Compiler/2018.3.222/compilers_and_libraries_2018.3.222/linux/mkl" \
36 --with-scalapack-include=/nasa/intel/Compiler/2018.3.222/mkl/include \
37 --with-scalapack-lib="/nasa/intel/Compiler/2018.3.222/mkl/lib/intel64/libmkl_scalapack_lp64.so /nasa/intel/Compiler/2018.3.222/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.so" \
38 --with-make-np=10 \
39 --known-mpi-shared-libraries=1 \
40 --with-debugging=0 \
41 --with-valgrind=0 \
42 --with-x=0 \
43 --with-ssl=0 \
44 --with-batch=1 \
45 --with-shared-libraries=1 \
46 --download-metis=1 \
47 --download-parmetis=1 \
48 --download-mumps=1 \
49 --download-scalapack=0
50
51# Compile and install
52make
53make install
Note: See TracBrowser for help on using the repository browser.