source: issm/oecreview/Archive/27032-27229/ISSM-27191-27192.diff@ 27230

Last change on this file since 27230 was 27230, checked in by Mathieu Morlighem, 3 years ago

CHG: oecreview

File size: 1.9 KB
  • TabularUnified ../trunk-jpl/externalpackages/petsc/install-3.17-pleiades.sh

     
     1#!/bin/bash
     2set -eu
     3
     4## Constants
     5VER="3.17.4"
     6
     7# Download source
     8$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
     9
     10# Unpack source
     11tar -zxvf petsc-${VER}.tar.gz
     12
     13# Cleanup
     14rm -rf install src
     15mkdir install src
     16
     17# Move source to 'src' directory
     18mv petsc-${VER}/* src/
     19rm -rf petsc-${VER}
     20
     21#options from cat /nasa/petsc/3.14.5_toss3/lib/petsc/conf/petscvariables | grep CONF
     22cd src
     23./configure \
     24        --prefix="${ISSM_DIR}/externalpackages/petsc/install" \
     25        --PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
     26        --with-blas-lapack-dir="/nasa/intel/Compiler/2018.3.222/compilers_and_libraries_2018.3.222/linux/mkl" \
     27        --with-scalapack-include="/nasa/intel/Compiler/2018.3.222/mkl/include" \
     28        --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" \
     29        --CFLAGS="-g -O3" \
     30        --CXXFLAGS="-g -O3" \
     31        --FFLAGS="-g -O3" \
     32        --with-make-np=10 \
     33        --with-batch=1 \
     34        --with-pic=1 \
     35        --with-shared-libraries=1 \
     36        --with-debugging=0 \
     37        --with-valgrind=0 \
     38        --with-x=0 \
     39        --with-ssl=0 \
     40        --download-make=1 \
     41        --download-metis=1 \
     42        --download-parmetis=1 \
     43        --download-mumps=1
     44
     45# Compile and install
     46make
     47make install
Note: See TracBrowser for help on using the repository browser.