Changeset 24331 for issm/trunk-jpl/externalpackages/petsc
- Timestamp:
- 11/14/19 12:36:05 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/petsc/install-3.7-linux64.sh
r23435 r24331 2 2 set -eu 3 3 4 #Some cleanup 5 rm -rf install petsc-3.7.6 src 4 5 ## Constants 6 # 7 VER="3.7.6" 8 9 # Download source 10 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz" 11 12 # Unpack source 13 tar -zxvf petsc-$VER.tar.gz 14 15 # Cleanup 16 rm -rf install src 6 17 mkdir install src 7 18 8 #Download from ISSM server 9 $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.7.6.tar.gz' 'petsc-3.7.6.tar.gz' 19 # Move source to 'src' directory 20 mv petsc-$VER/* src/ 21 rm -rf petsc-$VER 10 22 11 #Untar and move petsc to install directory 12 tar -zxvf petsc-3.7.6.tar.gz 13 mv petsc-3.7.6/* src/ 14 rm -rf petsc-3.7.6 15 16 #configure 23 # Configure 17 24 cd src 18 25 ./config/configure.py \ 19 --prefix="$ISSM_DIR/externalpackages/petsc/install" \ 20 --with-mpi-dir="$ISSM_DIR/externalpackages/mpich/install" \ 21 --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \ 26 --prefix="${ISSM_DIR}/externalpackages/petsc/install" \ 27 --PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \ 28 --with-mpi-dir="${ISSM_DIR}/externalpackages/mpich/install" \ 29 --with-blas-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -lblas" \ 30 --with-lapack-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -llapack" \ 22 31 --with-debugging=0 \ 23 32 --with-valgrind=0 \ … … 25 34 --with-ssl=0 \ 26 35 --with-shared-libraries=1 \ 36 --download-zlib=1\ 37 --download-hdf5=1 \ 38 --download-netcdf=1 \ 27 39 --download-metis=1 \ 28 40 --download-parmetis=1 \ 29 --download-mumps=1 \30 41 --download-scalapack=1 \ 31 --download-fblaslapack=1 \ 32 --with-pic=1 42 --download-mumps=1 33 43 34 #Compile and intall 35 make 36 make install 44 # Compile and install 45 if [ $# -eq 0 ]; then 46 make 47 make install 48 else 49 make -j $1 50 make -j $1 install 51 fi 52 53 # Return to initial directory 54 cd ..
Note:
See TracChangeset
for help on using the changeset viewer.