Last change
on this file since 27202 was 27202, checked in by jdquinn, 3 years ago |
CHG: Varied clean up
|
-
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
|
---|
[27202] | 16 | tar -zxvf petsc-${VER}.tar.gz
|
---|
[26405] | 17 |
|
---|
| 18 | # Cleanup
|
---|
[27202] | 19 | rm -rf ${PREFIX} ${PETSC_DIR}
|
---|
| 20 | mkdir -p ${PETSC_DIR}
|
---|
[26405] | 21 |
|
---|
| 22 | # Move source to $PETSC_DIR
|
---|
[27202] | 23 | mv petsc-${VER}/* ${PETSC_DIR}
|
---|
| 24 | rm -rf petsc-${VER}
|
---|
[26405] | 25 |
|
---|
| 26 | # Configure
|
---|
| 27 | #
|
---|
[27202] | 28 | # NOTE:
|
---|
| 29 | # - Based on /nasa/petsc/3.7.5/intel_mpt/lib/petsc/conf/petscvariables (look
|
---|
| 30 | # for CONFIGURE_OPTIONS)
|
---|
[26405] | 31 | #
|
---|
[27202] | 32 | cd ${PETSC_DIR}
|
---|
[26405] | 33 | ./config/configure.py \
|
---|
[26950] | 34 | --prefix="${PREFIX}" \
|
---|
| 35 | --PETSC_DIR="${PETSC_DIR}" \
|
---|
[26803] | 36 | --with-blas-lapack-dir="/nasa/intel/Compiler/2018.3.222/compilers_and_libraries_2018.3.222/linux/mkl" \
|
---|
| 37 | --with-scalapack-include=/nasa/intel/Compiler/2018.3.222/mkl/include \
|
---|
| 38 | --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] | 39 | --with-make-np=10 \
|
---|
[26405] | 40 | --known-mpi-shared-libraries=1 \
|
---|
| 41 | --with-debugging=0 \
|
---|
| 42 | --with-valgrind=0 \
|
---|
| 43 | --with-x=0 \
|
---|
| 44 | --with-ssl=0 \
|
---|
| 45 | --with-batch=1 \
|
---|
| 46 | --with-shared-libraries=1 \
|
---|
| 47 | --download-metis=1 \
|
---|
| 48 | --download-parmetis=1 \
|
---|
| 49 | --download-mumps=1 \
|
---|
[26803] | 50 | --download-scalapack=0
|
---|
[26405] | 51 |
|
---|
| 52 | # Compile and install
|
---|
| 53 | make
|
---|
| 54 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.