Last change
on this file since 26803 was 26803, checked in by schlegel, 3 years ago |
CHG: update 3.15 install for toss3 modules
|
-
Property svn:executable
set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | set -eu
|
---|
3 |
|
---|
4 |
|
---|
5 | ## Constants
|
---|
6 | #
|
---|
7 | VER="3.15.0"
|
---|
8 |
|
---|
9 | # Download source
|
---|
10 | $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.15.0.tar.gz' 'petsc-3.15.0.tar.gz'
|
---|
11 |
|
---|
12 | # Unpack source
|
---|
13 | tar -zxvf petsc-3.15.0.tar.gz
|
---|
14 |
|
---|
15 | # Cleanup
|
---|
16 | rm -rf install src
|
---|
17 | mkdir install src
|
---|
18 |
|
---|
19 | # Move source to $PETSC_DIR
|
---|
20 | mv petsc-3.15.0/* src/
|
---|
21 | rm -rf petsc-3.15.0
|
---|
22 |
|
---|
23 |
|
---|
24 | # Configure
|
---|
25 | #
|
---|
26 | # NOTE: Based on /nasa/petsc/3.7.5/intel_mpt/lib/petsc/conf/petscvariables; look for CONFIGURE_OPTIONS
|
---|
27 | #
|
---|
28 | cd src
|
---|
29 | ./config/configure.py \
|
---|
30 | --prefix="${ISSM_DIR}/externalpackages/petsc/install" \
|
---|
31 | --PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
|
---|
32 | --with-blas-lapack-dir="/nasa/intel/Compiler/2018.3.222/compilers_and_libraries_2018.3.222/linux/mkl" \
|
---|
33 | --with-scalapack-include=/nasa/intel/Compiler/2018.3.222/mkl/include \
|
---|
34 | --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" \
|
---|
35 | --with-make-np=10 \
|
---|
36 | --known-mpi-shared-libraries=1 \
|
---|
37 | --with-debugging=0 \
|
---|
38 | --with-valgrind=0 \
|
---|
39 | --with-x=0 \
|
---|
40 | --with-ssl=0 \
|
---|
41 | --with-batch=1 \
|
---|
42 | --with-shared-libraries=1 \
|
---|
43 | --download-metis=1 \
|
---|
44 | --download-parmetis=1 \
|
---|
45 | --download-mumps=1 \
|
---|
46 | --download-scalapack=0
|
---|
47 |
|
---|
48 | # Compile and install
|
---|
49 | make
|
---|
50 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.