[27032] | 1 | Index: ../trunk-jpl/externalpackages/petsc/install-3.14-mac-nohdf5.sh
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/externalpackages/petsc/install-3.14-mac-nohdf5.sh (nonexistent)
|
---|
| 4 | +++ ../trunk-jpl/externalpackages/petsc/install-3.14-mac-nohdf5.sh (revision 26974)
|
---|
| 5 | @@ -0,0 +1,59 @@
|
---|
| 6 | +#!/bin/bash
|
---|
| 7 | +set -eu
|
---|
| 8 | +
|
---|
| 9 | +
|
---|
| 10 | +## Constants
|
---|
| 11 | +#
|
---|
| 12 | +VER="3.14.0"
|
---|
| 13 | +
|
---|
| 14 | +PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
|
---|
| 15 | +PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
|
---|
| 16 | +
|
---|
| 17 | +# Download source
|
---|
| 18 | +$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
|
---|
| 19 | +
|
---|
| 20 | +# Unpack source
|
---|
| 21 | +tar -zxvf petsc-${VER}.tar.gz
|
---|
| 22 | +
|
---|
| 23 | +# Cleanup
|
---|
| 24 | +rm -rf ${PREFIX} ${PETSC_DIR}
|
---|
| 25 | +mkdir ${PETSC_DIR}
|
---|
| 26 | +
|
---|
| 27 | +# Move source to $PETSC_DIR
|
---|
| 28 | +mv petsc-${VER}/* ${PETSC_DIR}
|
---|
| 29 | +rm -rf petsc-${VER}
|
---|
| 30 | +
|
---|
| 31 | +# Configure
|
---|
| 32 | +#
|
---|
| 33 | +# NOTE:
|
---|
| 34 | +# - Added -Wno-error=implicit-function-declaration to CFLAGS for Clang >= 12.
|
---|
| 35 | +# (may need to remove it for earlier versions not using the C99 standard).
|
---|
| 36 | +# - Added -fallow-argument-mismatch to FFLAGS in order to clear,
|
---|
| 37 | +#
|
---|
| 38 | +# error: The Fortran compiler gfortran will not compile files that call
|
---|
| 39 | +# the same routine with arguments of different types.
|
---|
| 40 | +#
|
---|
| 41 | +# for gfortran 10 or later (may need to remove it for earlier versions).
|
---|
| 42 | +#
|
---|
| 43 | +cd ${PETSC_DIR}
|
---|
| 44 | +./config/configure.py \
|
---|
| 45 | + --prefix="${PREFIX}" \
|
---|
| 46 | + --PETSC_DIR="${PETSC_DIR}" \
|
---|
| 47 | + --CFLAGS="-Wno-error=implicit-function-declaration" \
|
---|
| 48 | + --FFLAGS="-fallow-argument-mismatch" \
|
---|
| 49 | + --with-debugging=0 \
|
---|
| 50 | + --with-valgrind=0 \
|
---|
| 51 | + --with-x=0 \
|
---|
| 52 | + --with-ssl=0 \
|
---|
| 53 | + --with-pic=1 \
|
---|
| 54 | + --download-fblaslapack=1 \
|
---|
| 55 | + --download-mpich=1 \
|
---|
| 56 | + --download-metis=1 \
|
---|
| 57 | + --download-parmetis=1 \
|
---|
| 58 | + --download-scalapack=1 \
|
---|
| 59 | + --download-mumps=1 \
|
---|
| 60 | + --download-zlib=1
|
---|
| 61 | +
|
---|
| 62 | +# Compile and install
|
---|
| 63 | +make
|
---|
| 64 | +make install
|
---|
| 65 |
|
---|
| 66 | Property changes on: ../trunk-jpl/externalpackages/petsc/install-3.14-mac-nohdf5.sh
|
---|
| 67 | ___________________________________________________________________
|
---|
| 68 | Added: svn:executable
|
---|
| 69 | ## -0,0 +1 ##
|
---|
| 70 | +*
|
---|
| 71 | \ No newline at end of property
|
---|