Last change
on this file since 27035 was 27035, checked in by Mathieu Morlighem, 3 years ago |
merged trunk-jpl and trunk for revision 27033
|
-
Property svn:executable
set to
*
|
File size:
1.5 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | set -eu
|
---|
3 |
|
---|
4 |
|
---|
5 | # NOTE: There is a single difference between the Linux and macOS
|
---|
6 | # configurations, which is the addition of the -static-libgfortran
|
---|
7 | # option to FFLAGS on the macOS static configurations. For the sake of
|
---|
8 | # consistency, we maintain separate files for each, respective Linux and
|
---|
9 | # macOS configuration.
|
---|
10 |
|
---|
11 | # Constants
|
---|
12 | VER="3.14.6"
|
---|
13 |
|
---|
14 | # Download source
|
---|
15 | $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
|
---|
16 |
|
---|
17 | # Unpack source
|
---|
18 | tar -zxvf petsc-${VER}.tar.gz
|
---|
19 |
|
---|
20 | # Cleanup
|
---|
21 | rm -rf install src
|
---|
22 | mkdir install src
|
---|
23 |
|
---|
24 | # Move source to 'src' directory
|
---|
25 | mv petsc-${VER}/* src/
|
---|
26 | rm -rf petsc-${VER}
|
---|
27 |
|
---|
28 | # Configure
|
---|
29 | cd src
|
---|
30 | ./config/configure.py \
|
---|
31 | COPTFLAGS="-g -O3" CXXOPTFLAGS="-g -O3" FOPTFLAGS="-g -O3" \
|
---|
32 | --prefix="${ISSM_DIR}/externalpackages/petsc/install" \
|
---|
33 | --PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
|
---|
34 | --with-debugging=0 \
|
---|
35 | --with-valgrind=0 \
|
---|
36 | --with-x=0 \
|
---|
37 | --with-ssl=0 \
|
---|
38 | --with-pic=1 \
|
---|
39 | --with-blas-lapack-dir="/usr/local/intel/2020/compilers_and_libraries_2020.0.166/linux/mkl/" \
|
---|
40 | --with-cc="/usr/local/sgi/mpi/mpt-2.17/bin/mpicc" \
|
---|
41 | --with-cxx="/usr/local/sgi/mpi/mpt-2.17/bin/mpicxx" \
|
---|
42 | --with-fc="/usr/local/sgi/mpi/mpt-2.17/bin/mpif90" \
|
---|
43 | --known-mpi-shared-libraries=1 \
|
---|
44 | --known-64-bit-blas-indices \
|
---|
45 | --known-mpi-long-double=1 \
|
---|
46 | --known-mpi-int64_t=1 \
|
---|
47 | --known-mpi-c-double-complex=1 \
|
---|
48 | --with-shared-libraries=1 \
|
---|
49 | --download-metis=1 \
|
---|
50 | --download-parmetis=1 \
|
---|
51 | --download-scalapack=1 \
|
---|
52 | --download-mumps=1
|
---|
53 |
|
---|
54 | # Compile and install
|
---|
55 | make
|
---|
56 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.