- Timestamp:
- 04/10/22 13:17:30 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/petsc/install-3.14-pleiades.sh
r26771 r26950 3 3 4 4 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 # 12 7 VER="3.14.0" 13 8 9 PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS 10 PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed 11 14 12 # 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" 16 14 17 15 # Unpack source … … 19 17 20 18 # Cleanup 21 rm -rf install src22 mkdir install src19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir ${PETSC_DIR} 23 21 24 # Move source to 'src' directory25 mv petsc-${VER}/* src/22 # Move source to $PETSC_DIR 23 mv petsc-${VER}/* ${PETSC_DIR} 26 24 rm -rf petsc-${VER} 27 25 28 26 # Configure 29 cd src27 cd ${PETSC_DIR} 30 28 ./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" \ 34 34 --with-debugging=0 \ 35 35 --with-valgrind=0 \ … … 41 41 --with-scalapack-include=/nasa/intel/Compiler/2018.3.222/mkl/include \ 42 42 --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 \44 43 --download-metis=1 \ 45 44 --download-parmetis=1 \ 46 --download-scalapack=0 \ 47 --download-mumps=1 45 --download-scalapack=0 48 46 49 47 # Compile and install
Note:
See TracChangeset
for help on using the changeset viewer.