Last change
on this file since 28013 was 28013, checked in by Mathieu Morlighem, 16 months ago |
merged trunk-jpl and trunk for revision 28011
|
-
Property svn:executable
set to
*
|
File size:
1.4 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | set -eu
|
---|
3 |
|
---|
4 |
|
---|
5 | ## Constants
|
---|
6 | #
|
---|
7 | VER="3.14.6"
|
---|
8 |
|
---|
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 |
|
---|
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
|
---|
16 | tar -zxvf petsc-${VER}.tar.gz
|
---|
17 |
|
---|
18 | # Cleanup
|
---|
19 | rm -rf ${PREFIX} ${PETSC_DIR}
|
---|
20 | mkdir -p ${PETSC_DIR}
|
---|
21 |
|
---|
22 | # Move source to $PETSC_DIR
|
---|
23 | mv petsc-${VER}/* ${PETSC_DIR}
|
---|
24 | rm -rf petsc-${VER}
|
---|
25 |
|
---|
26 | # Configure
|
---|
27 | cd ${PETSC_DIR}
|
---|
28 | ./config/configure.py \
|
---|
29 | COPTFLAGS="-g -O3" CXXOPTFLAGS="-g -O3" FOPTFLAGS="-g -O3" \
|
---|
30 | --prefix="${PREFIX}" \
|
---|
31 | --PETSC_DIR="${PETSC_DIR}" \
|
---|
32 | --with-debugging=0 \
|
---|
33 | --with-valgrind=0 \
|
---|
34 | --with-x=0 \
|
---|
35 | --with-ssl=0 \
|
---|
36 | --with-pic=1 \
|
---|
37 | --with-blas-lapack-dir="/usr/local/intel/oneapi/2021/mkl/2021.4.0/" \
|
---|
38 | --with-cc="/usr/local/intel/oneapi/2021/mpi/2021.4.0/bin/mpicc" \
|
---|
39 | --with-cxx="/usr/local/intel/oneapi/2021/mpi/2021.4.0/bin/mpicxx" \
|
---|
40 | --with-fc="/usr/local/intel/oneapi/2021/mpi/2021.4.0/bin/mpif90" \
|
---|
41 | --known-mpi-shared-libraries=1 \
|
---|
42 | --known-64-bit-blas-indices \
|
---|
43 | --known-mpi-long-double=1 \
|
---|
44 | --known-mpi-int64_t=1 \
|
---|
45 | --known-mpi-c-double-complex=1 \
|
---|
46 | --with-shared-libraries=1 \
|
---|
47 | --download-metis=1 \
|
---|
48 | --download-parmetis=1 \
|
---|
49 | --download-scalapack=1 \
|
---|
50 | --download-mumps=1
|
---|
51 |
|
---|
52 | # Compile and install
|
---|
53 | make
|
---|
54 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.