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
|
Rev | Line | |
---|
[26405] | 1 | #!/bin/bash
|
---|
| 2 | set -eu
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 | ## Constants
|
---|
| 6 | #
|
---|
| 7 | VER="3.15.0"
|
---|
| 8 |
|
---|
[26950] | 9 | PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
|
---|
| 10 | PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
|
---|
| 11 |
|
---|
[26405] | 12 | # Download source
|
---|
[26950] | 13 | $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
|
---|
[26405] | 14 |
|
---|
| 15 | # Unpack source
|
---|
| 16 | tar -zxvf petsc-3.15.0.tar.gz
|
---|
| 17 |
|
---|
| 18 | # Cleanup
|
---|
| 19 | rm -rf install src
|
---|
| 20 | mkdir install src
|
---|
| 21 |
|
---|
| 22 | # Move source to $PETSC_DIR
|
---|
| 23 | mv petsc-3.15.0/* src/
|
---|
| 24 | rm -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 | #
|
---|
| 31 | cd src
|
---|
| 32 | ./config/configure.py \
|
---|
[26950] | 33 | --prefix="${PREFIX}" \
|
---|
| 34 | --PETSC_DIR="${PETSC_DIR}" \
|
---|
[26803] | 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" \
|
---|
[26406] | 38 | --with-make-np=10 \
|
---|
[26405] | 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 \
|
---|
[26803] | 49 | --download-scalapack=0
|
---|
[26405] | 50 |
|
---|
| 51 | # Compile and install
|
---|
| 52 | make
|
---|
| 53 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.