Ignore:
Timestamp:
04/10/22 13:17:30 (3 years ago)
Author:
jdquinn
Message:

CHG: Various changes to external packages and configuration in support of solid earth build on Pleiades; various pending commits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/petsc/install-3.14-pleiades.sh

    r26771 r26950  
    33
    44
    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
     5## Constants
     6#
    127VER="3.14.0"
    138
     9PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
     10PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
     11
    1412# 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"
     13$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
    1614
    1715# Unpack source
     
    1917
    2018# Cleanup
    21 rm -rf install src
    22 mkdir install src
     19rm -rf ${PREFIX} ${PETSC_DIR}
     20mkdir ${PETSC_DIR}
    2321
    24 # Move source to 'src' directory
    25 mv petsc-${VER}/* src/
     22# Move source to $PETSC_DIR
     23mv petsc-${VER}/* ${PETSC_DIR}
    2624rm -rf petsc-${VER}
    2725
    2826# Configure
    29 cd src
     27cd ${PETSC_DIR}
    3028./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" \
     29        --prefix="${PREFIX}" \
     30        --PETSC_DIR="${PETSC_DIR}" \
     31        --CFLAGS="-g -O3" \
     32        --CXXFLAGS="-g -O3" \
     33        --FFLAGS="-g -O3" \
    3434        --with-debugging=0 \
    3535        --with-valgrind=0 \
     
    4141        --with-scalapack-include=/nasa/intel/Compiler/2018.3.222/mkl/include \
    4242        --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" \
    43         --with-shared-libraries=1 \
    4443        --download-metis=1 \
    4544        --download-parmetis=1 \
    46         --download-scalapack=0 \
    47         --download-mumps=1
     45        --download-scalapack=0
    4846
    4947# Compile and install
Note: See TracChangeset for help on using the changeset viewer.