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