source: issm/trunk-jpl/externalpackages/petsc/install-3.15-pleiades.sh@ 26405

Last change on this file since 26405 was 26405, checked in by seroussi, 4 years ago

NEW: configure petsc 3.25 pleiades

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/bash
2set -eu
3
4
5## Constants
6#
7VER="3.15.0"
8
9# Download source
10$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.15.0.tar.gz' 'petsc-3.15.0.tar.gz'
11
12# Unpack source
13tar -zxvf petsc-3.15.0.tar.gz
14
15# Cleanup
16rm -rf install src
17mkdir install src
18
19# Move source to $PETSC_DIR
20mv petsc-3.15.0/* src/
21rm -rf petsc-3.15.0
22
23
24# Configure
25#
26# NOTE: Based on /nasa/petsc/3.7.5/intel_mpt/lib/petsc/conf/petscvariables; look for CONFIGURE_OPTIONS
27#
28cd src
29./config/configure.py \
30 --prefix="${ISSM_DIR}/externalpackages/petsc/install" \
31 --PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
32 --with-cc=icc --with-cxx=icpc --with-fc=ifort --with-f77=ifort\
33 -COPTFLAGS="-g -O3 -axCORE-AVX2,AVX -xSSE4.2" -CXXOPTFLAGS="-g -O3 -axCORE-AVX2,AVX -xSSE4.2" -FOPTFLAGS="-g -O3 -axCORE-AVX2,AVX -xSSE4.2" \
34 --with-blas-lapack-dir="/nasa/intel/Compiler/2016.2.181/compilers_and_libraries_2016.2.181/linux/mkl/" \
35 --known-mpi-shared-libraries=1 \
36 --with-debugging=0 \
37 --with-valgrind=0 \
38 --with-x=0 \
39 --with-ssl=0 \
40 --with-batch=1 \
41 --with-shared-libraries=1 \
42 --download-metis=1 \
43 --download-parmetis=1 \
44 --download-mumps=1 \
45 --download-scalapack=1
46
47# Compile and install
48make
49make install
Note: See TracBrowser for help on using the repository browser.